diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-22 14:03:42 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-22 14:03:42 +0000 |
commit | ab887e01d3b3d17fdc6d436e19f8fcef4ba21428 (patch) | |
tree | ba1576cc7f4b9f0f72f5ea6d718803d1f89f9399 /net/amule-devel/Makefile | |
parent | - Remove long time unresponsive MASTER_SITE (diff) |
- Rework OPTIONS
- Use configure option to rename ed2k binary instead of patching
PR: ports/66989
Submitted by: Ganael LAPLANCHE <ganael.laplanche@martymac.com> (maintainer)
Diffstat (limited to 'net/amule-devel/Makefile')
-rw-r--r-- | net/amule-devel/Makefile | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/net/amule-devel/Makefile b/net/amule-devel/Makefile index 478895b7c86a..e98d75f36d97 100644 --- a/net/amule-devel/Makefile +++ b/net/amule-devel/Makefile @@ -19,26 +19,29 @@ LIB_DEPENDS= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 \ USE_X_PREFIX= yes USE_GNOME= gnomehier gnomehack gnomeprefix -USE_REINPLACE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-included-gettext \ --with-libintl-prefix=${LOCALBASE} \ --with-libiconv-prefix=${LOCALBASE} \ --with-wx-config=${WX_CONFIG} \ - --with-wxbase-config=${WX_CONFIG} - -OPTIONS= OPTIMIZE "Build with optimization" off \ - STATIC "Enable static linking" off \ - RELGRP "Use release group code" off + --with-wxbase-config=${WX_CONFIG} \ + --with-curl-config=${CURL_CONFIG} \ + --program-transform-name="s/ed2k/amule-ed2k-handler/" CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" +OPTIONS= OPTIMIZE "Build with optimization" on \ + STATIC "Enable static linking" off + WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config +CURL_CONFIG?= ${LOCALBASE}/bin/curl-config + +.include <bsd.port.pre.mk> # Configure options -.if defined(WITH_OPTIMIZE) +.if !defined(WITHOUT_OPTIMIZE) CONFIGURE_ARGS+= --enable-optimise .endif @@ -46,19 +49,4 @@ CONFIGURE_ARGS+= --enable-optimise CONFIGURE_ARGS+= --enable-static .endif -.if defined(WITH_RELGRP) -CONFIGURE_ARGS+= --enable-releasegrp -.endif - -post-build: -# Build the generic named ed2k binary -# It will be installed in an adhoc fashion - @cd ${BUILD_WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ed2k - -post-install: -# Do not install a generic named ed2k binary -# Install it under a more specific name - @${INSTALL_PROGRAM} ${WRKSRC}/src/ed2k \ - ${PREFIX}/bin/amule-ed2k-handler - -.include <bsd.port.mk> +.include <bsd.port.post.mk> |