diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-23 19:35:27 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-23 19:35:27 +0000 |
commit | ada00ab7d3521a84affe34d93ead75ec9cfbb776 (patch) | |
tree | 9feba05758df6595f07c46204c08ba236f8a650a /x11/qt2-libs/Makefile.common | |
parent | 10b20dedaed15d9707e86c30f5e401d66fcb1b72 (diff) | |
download | pkgsrc-ada00ab7d3521a84affe34d93ead75ec9cfbb776.tar.gz |
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Handle
-L and rpath specifications in the config files by directly substituting
their final values; this is needed since the configure script directly
manipulates these values via sed and needs the substituted values, not
just ${VAR}. Also honor CXXFLAGS passed in from the environment (possibly
containing optimization flags) during the build.
Diffstat (limited to 'x11/qt2-libs/Makefile.common')
-rw-r--r-- | x11/qt2-libs/Makefile.common | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/x11/qt2-libs/Makefile.common b/x11/qt2-libs/Makefile.common index b0c9a90511b..15af1ef9ce8 100644 --- a/x11/qt2-libs/Makefile.common +++ b/x11/qt2-libs/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.14 2001/06/14 11:15:46 skrll Exp $ +# $NetBSD: Makefile.common,v 1.15 2001/06/23 19:35:27 jlam Exp $ # DISTNAME= qt-x11-${QTVERSION} @@ -16,8 +16,7 @@ USE_GMAKE= yes USE_LIBTOOL= yes CONFIGURE_ARGS+= -static -sm -no-thread \ -system-zlib -system-libpng \ - -system-libmng -system-jpeg \ - -I${LOCALBASE}/include -L${LOCALBASE}/lib + -system-libmng -system-jpeg CONFIGURE_ARGS+= -gif # qt2 does not write compressed GIFs CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance @@ -26,6 +25,11 @@ QTPREFIX= ${PREFIX}/qt2 MAKE_ENV+= QTPREFIX=${QTPREFIX} +MAKE_ENV+= SYSCONF_CXXFLAGS="${CXXFLAGS}" +MAKE_ENV+= SYSCONF_CFLAGS="${CFLAGS}" +MAKE_ENV+= SYSCONF_CXXFLAGS_LIB="${CXXFLAGS}" +MAKE_ENV+= SYSCONF_CFLAGS_LIB="${CFLAGS}" + DISTINFO_FILE= ${.CURDIR}/../../x11/qt2-libs/distinfo FILESDIR= ${.CURDIR}/../../x11/qt2-libs/files PATCHDIR= ${.CURDIR}/../../x11/qt2-libs/patches @@ -33,7 +37,25 @@ PATCHDIR= ${.CURDIR}/../../x11/qt2-libs/patches .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" -BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs -CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++ -CONFIGURE_ARGS+=-platform solaris-g++ +BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs +CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++ +CONFIGURE_ARGS+= -platform solaris-g++ .endif + +FILES_SUBST= BUILDLINK_DIR=${BUILDLINK_DIR} +FILES_SUBST+= LOCALBASE=${LOCALBASE} +FILES_SUBST+= QTDIR=${QTPREFIX} +FILES_SUBST+= X11BASE=${X11BASE} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} + +post-extract: + cd ${WRKSRC}/configs; \ + for file in netbsd-g++-static solaris-g++-static; do \ + ${MV} -f $${file} $${file}.in; \ + done + +post-patch: + cd ${WRKSRC}/configs; \ + for file in netbsd-g++-static solaris-g++-static; do \ + ${SED} ${FILES_SUBST_SED} $${file}.in > $${file}; \ + done |