Date: Fri, 28 Oct 2005 15:59:12 -0600 From: Jon Drews <jon.drews@gmail.com> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Correctly implementing ${PREFIX} Message-ID: <8cb27cbf0510281459n37e8eb40waa86d888e6563e61@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Port: editors/ted Hi: Kris wrote me about a defect in my port: > Dear port maintainer, > > This port does not respect non-standard LOCALBASE/X11BASE settings, > which is a requirement that all FreeBSD ports should satisfy. In this bu= ild, > your port and all its dependencies were built with LOCALBASE=3D/usr/opt a= nd > X11BASE=3D/usr/X, and the build failed because of hard-coded values in yo= ur > port This port does not use configure in the traditional way. Instead, in the WRKSRC Makefile I find: #### Actively supported 'configure' options are: #### ------------------------------------------- #### #### --prefix Use another place than /usr/local #### for installation. E.G. #### --prefix=3D/opt/Ted #### --with-MOTIF Use the Motif gui toolkit. (The #### default) #### --with-GTK Use the Gtk+ gui toolkit. (Still #### experimental) <Snip> CONFIGURE_OPTIONS=3D--with-MOTIF I made a patch so that the configure options are now: CONFIGURE_OPTIONS=3D--with-MOTIF --prefix=3D${PREFIX} My questions now are: 1) Using this --prefix=3D${PREFIX} will satisfy the requirements Kris has asked for? 2) My Makefile (for the port) has: GNU_CONFIGURE=3D yes CONFIGURE_ARGS=3D --prefix=3D${PREFIX} CONFIGURE_TARGET=3D --build=3D${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV=3D CC=3D"${CC}" CFLAGS=3D"${CFLAGS}" it does not look like GNU_CONFIGURE=3D yes and CONFIGURE_ARGS=3D --prefix=3D${PREFIX}, CONFIGURE_TARGET=3D are being used. Is it OK to delete them from the port Makefile? 3) Do I need to have CONFIGURE_ENV=3D CC=3D"${CC}" CFLAGS=3D"${CFLAGS}" ? Thanks for any guidance on this; I am new to porting. -- Kind regards, Jonathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb27cbf0510281459n37e8eb40waa86d888e6563e61>