diff options
author | ahze <ahze@FreeBSD.org> | 2005-11-30 05:14:01 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-11-30 05:14:01 +0800 |
commit | ba7c1d1dfca21763ae3a5d33ab5eec7fa1321bea (patch) | |
tree | 82b9f7ac70f7a610d68b5453e8db1fc6c628f99a /www/nvu/Makefile | |
parent | cf3e3c4ca85b04aa2fd05adbbbb61c279ecd8e52 (diff) | |
download | freebsd-ports-gnome-ba7c1d1dfca21763ae3a5d33ab5eec7fa1321bea.tar.gz freebsd-ports-gnome-ba7c1d1dfca21763ae3a5d33ab5eec7fa1321bea.tar.zst freebsd-ports-gnome-ba7c1d1dfca21763ae3a5d33ab5eec7fa1321bea.zip |
- Use new Makefile.common from mozilla
Diffstat (limited to 'www/nvu/Makefile')
-rw-r--r-- | www/nvu/Makefile | 111 |
1 files changed, 6 insertions, 105 deletions
diff --git a/www/nvu/Makefile b/www/nvu/Makefile index 9622c1d8aa94..5c8e6a135e0b 100644 --- a/www/nvu/Makefile +++ b/www/nvu/Makefile @@ -3,6 +3,7 @@ # Whom: Thierry Thomas <thierry@pompo.net> # # $FreeBSD$ +# $MCom: ports/www/nvu/Makefile,v 1.3 2005/11/23 00:40:57 ahze Exp $ # PORTNAME= nvu @@ -14,125 +15,25 @@ DISTNAME= ${PORTNAME}-${DISTVERSION}-sources MAINTAINER= ahze@FreeBSD.org COMMENT= A complete Web Authoring System similar to Dreamweaver or Frontpage -BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip -LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ - png.5:${PORTSDIR}/graphics/png \ - Xft.2:${PORTSDIR}/x11-fonts/libXft - USE_X_PREFIX= yes USE_BZIP2= yes -USE_PERL5= yes -USE_GNOME= gtk20 libidl -USE_REINPLACE= yes +WANT_GNOME= yes USE_GMAKE= yes -PKGINSTALL= ${WRKDIR}/pkg-install -PKGDEINSTALL= ${WRKDIR}/pkg-deinstall NVU= ${PORTNAME}-${DISTVERSION} -FAKEDIR= ${WRKDIR}/FAKE -WRKSRC= ${WRKDIR}/mozilla -PLIST= ${WRKDIR}/plist MAKEFILE= client.mk ALL_TARGET= build_all -PKG_CONFIGS= nvu-gtkmozembed.pc nvu-js.pc nvu-nspr.pc \ - nvu-nss.pc nvu-plugin.pc nvu-xpcom.pc -EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* +PORT_MOZCONFIG= ${WRKSRC}/composer/config/mozconfig.linux .include <bsd.port.pre.mk> +.include "${.CURDIR}/../mozilla/Makefile.common" .if ${PERL_LEVEL} < 500600 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-config_make-jars.pl .endif -pre-everything:: -.if !defined(WITH_OPTIMIZED_CFLAGS) - @${ECHO_MSG} "Enable -O2 optimizations by defining" - @${ECHO_MSG} "WITH_OPTIMIZED_CFLAGS" - @${ECHO_MSG} -.endif - post-patch: -# Remove so we can actaully find programs that are not in /usr/bin @${RM} -f ${WRKSRC}/config.status ${WRKSRC}/config.cache - @${SED} -e 's|%%NVUDIR%%|${PREFIX}/lib/${NVU}|g ; \ - s|%%PREFIX%%|${PREFIX}|g ; \ - s|%%X11BASE%%|${X11BASE}|g' \ - < ${MASTERDIR}/pkg-install.in > ${PKGINSTALL} - @${SED} -e 's|%%NVUDIR%%|${PREFIX}/lib/${NVU}|g' \ - < ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL} - @${SED} -e 's|%%CC%%|${CC}|; s|%%CXX%%|${CXX}|; \ - s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|; \ - s|%%CFLAGS%%|${CFLAGS}|; \ - s|%%CXXFLAGS%%|${CXXFLAGS}|; \ - s|%%PREFIX%%|${FAKEDIR}|; \ - s|%%LOCALBASE%%|${LOCALBASE}|' \ - ${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig -# Stupid workaround.. -.for f in toolkit/components/Makefile.in toolkit/components/gnome/Makefile.in - @${ECHO_CMD} "LDFLAGS += -L${LOCALBASE}/lib" >> ${WRKSRC}/${f} -.endfor -.if defined(WITH_DEBUG) - @${ECHO_CMD} "ac_add_options --enable-debug" >> ${WRKSRC}/.mozconfig - @${ECHO_CMD} "ac_add_options --disable-strip" >> ${WRKSRC}/.mozconfig -.else - @${ECHO_CMD} "ac_add_options --disable-debug" >> ${WRKSRC}/.mozconfig - @${ECHO_CMD} "ac_add_options --enable-strip" >> ${WRKSRC}/.mozconfig -.endif -.if defined(WITH_OPTIMIZED_CFLAGS) - @${ECHO_CMD} "ac_add_options --enable-optimize=-O2" >> ${WRKSRC}/.mozconfig -.endif - @${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \ - s|-lpthread|${PTHREAD_LIBS}|g; \ - s|/usr/X11R6|${X11BASE}|g' \ - ${WRKSRC}/configure \ - ${WRKSRC}/nsprpub/configure - @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \ - ${WRKSRC}/nsprpub/configure \ - ${WRKSRC}/security/coreconf/FreeBSD.mk \ - ${WRKSRC}/js/src/Makefile.in - -pre-install: - ${RM} -rf ${PLIST} ${FAKEDIR} - ${TOUCH} -f ${PLIST} - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ - ${MAKEFILE} ${MAKE_ARGS} install - ${ECHO_CMD} bin/nvu >> ${PLIST} - ${ECHO_CMD} bin/nvu-config >> ${PLIST} - cd ${FAKEDIR}/lib/${NVU} && ${FIND} -s * -type f -o -type l | \ - ${SED} -e 's|^|lib/${NVU}/|' >> ${PLIST} \ - && ${FIND} -d * -type d | \ - ${SED} -e 's:^:@dirrm lib/${NVU}/:' >> ${PLIST} - ${ECHO_CMD} @dirrm lib/${NVU} >> ${PLIST} -.for p in ${PKG_CONFIGS} - ${ECHO_CMD} ${p:S|^|libdata/pkgconfig/|} >> ${PLIST} -.endfor - cd ${FAKEDIR}/include/${NVU} && ${FIND} -s * -type f -o -type l | \ - ${SED} -e 's|^|include/${NVU}/|' >> ${PLIST} \ - && ${FIND} -d * -type d | \ - ${SED} -e 's|^|@dirrm include/${NVU}/|' >> ${PLIST} - ${ECHO_CMD} @dirrm include/${NVU} >> ${PLIST} - -do-install: - ${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|' \ - ${FAKEDIR}/bin/* \ - ${FAKEDIR}/lib/pkgconfig/* - ${RM} -f ${FAKEDIR}/bin/*.bak ${FAKEDIR}/lib/pkgconfig/*.bak - ${MKDIR} ${PREFIX}/lib/${NVU} - ${CHMOD} 755 ${PREFIX}/lib/${NVU} - ${INSTALL_SCRIPT} ${FAKEDIR}/bin/* ${PREFIX}/bin - if [ ! -d ${PREFIX}/libdata/pkgconfig ]; then \ - ${MKDIR} ${PREFIX}/libdata/pkgconfig ; \ - fi -.for i in ${PKG_CONFIGS} - ${INSTALL_DATA} ${FAKEDIR}/lib/pkgconfig/${i} ${PREFIX}/libdata/pkgconfig/ -.endfor - cd ${FAKEDIR}/lib/${NVU} && ${FIND} . | \ - ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${NVU} - cd ${FAKEDIR}/include/${NVU} && ${FIND} . | \ - ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${NVU} - -post-install: -.if !defined(PACKAGE_BUILDING) - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.endif + @${ECHO_CMD} "LDFLAGS += -L${LOCALBASE}/lib" >> ${WRKSRC}/toolkit/components/Makefile.in + @${ECHO_CMD} "LDFLAGS += -L${LOCALBASE}/lib" >> ${WRKSRC}/toolkit/components/gnome/Makefile.in .include <bsd.port.post.mk> |