1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

- Trim Makefile headers

- Convert to OptionsNG
- Strip ABI version from LIB_DEPENDS
- Update my email address

Approved by:	rene (mentor)
Feature safe:	yes
This commit is contained in:
Barbara Guida 2012-12-02 13:59:11 +00:00
parent 51ec1a2c8c
commit 2deeb5f2a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308108
2 changed files with 62 additions and 64 deletions

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: amule # Created by: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
# Date created: Wed Nov 05 09:30:00 UTC 2003
# Whom: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= amule PORTNAME= amule
PORTVERSION= 2.3.1 PORTVERSION= 2.3.1
@ -12,7 +8,7 @@ CATEGORIES= net-p2p
MASTER_SITES= SF/${PORTNAME}/aMule/${PORTVERSION} MASTER_SITES= SF/${PORTNAME}/aMule/${PORTVERSION}
DISTNAME= aMule-${PORTVERSION} DISTNAME= aMule-${PORTVERSION}
MAINTAINER= barbara.xxx1975@libero.it MAINTAINER= bar@FreeBSD.org
COMMENT= The all-platform eMule p2p client COMMENT= The all-platform eMule p2p client
LICENSE= GPLv2 GPLv3 LICENSE= GPLv2 GPLv3
@ -20,11 +16,11 @@ LICENSE_COMB= dual
LICENSE_FILE_GPLv2=${WRKSRC}/docs/COPYING LICENSE_FILE_GPLv2=${WRKSRC}/docs/COPYING
CONFLICTS= amule-devel-[0-9]*
BUILD_DEPENDS= ${FLEX}:${PORTSDIR}/textproc/flex \ BUILD_DEPENDS= ${FLEX}:${PORTSDIR}/textproc/flex \
${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp ${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
CONFLICTS= amule-devel-[0-9]*
USE_BZIP2= yes USE_BZIP2= yes
USE_BISON= build USE_BISON= build
USE_GNOME= pkgconfig USE_GNOME= pkgconfig
@ -41,23 +37,25 @@ CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= ${PTHREAD_CFLAGS} CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
OPTIONS= ALC "Compile aMule Link Creator for GUI" on \ OPTIONS_DEFINE= ALC ALCC AMULECMD AMULEDAEMON AMULEGUI CAS DOCS ED2K \
ALCC "Compile aMule Link Creator for console" on \ FILEVIEW GEOIP MMAP MONOLITHIC NLS PLASMAMULE UPNP \
AMULECMD "Compile aMule command line client" on \ WEBSERVER WXCAS WXUNICODE XAS
AMULEDAEMON "Compile aMule daemon version" on \ ALC_DESC= Compile aMule Link Creator for GUI
AMULEGUI "Compile aMule remote GUI" on \ ALCC_DESC= Compile aMule Link Creator for console
CAS "Compile aMule Statistics for console" on \ AMULECMD_DESC= Compile aMule command line client
ED2K "Compile aMule ed2k links handler" on \ AMULEDAEMON_DESC= Compile aMule daemon version
FILEVIEW "Compile file viewer for console (EXPERIMENTAL)" on \ AMULEGUI_DESC= Compile aMule remote GUI
GEOIP "Enable GeoIP IP2Country support" off \ CAS_DESC= Compile aMule Statistics for console
MMAP "Enable using mapped memory" off \ ED2K_DESC= Compile aMule ed2k links handler
MONOLITHIC "Compile monolithic aMule" on \ FILEVIEW_DESC= Compile file viewer for console (EXPERIMENTAL)
PLASMAMULE "Compile aMule plasma applet and engine" off \ MMAP_DESC= Use mapped memory
UPNP "Enable Universal Plug and Play support" off \ MONOLITHIC_DESC= Compile monolithic aMule
WEBSERVER "Compile aMule WebServer" on \ PLASMAMULE_DESC= Compile aMule plasma applet and engine
WXCAS "Compile aMule Statistics for GUI" on \ WXCAS_DESC= Compile aMule Statistics for GUI
WXUNICODE "Enable Unicode support" on \ WXUNICODE_DESC= Unicode support
XAS "Install XChat2 plugin" on XAS_DESC= Install XChat2 plugin
OPTIONS_DEFAULT=ALC ALCC AMULECMD AMULEDAEMON AMULEGUI CAS ED2K \
FILEVIEW MONOLITHIC WEBSERVER WXCAS WXUNICODE XAS
PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt INSTALL README TODO \ PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt INSTALL README TODO \
amulesig.txt license.txt amulesig.txt license.txt
@ -67,11 +65,11 @@ PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if !defined(WITH_DEBUG) .if empty(PORT_OPTIONS:MDEBUG)
CONFIGURE_ARGS+=--disable-debug CONFIGURE_ARGS+=--disable-debug
.endif .endif
.if !defined(WITHOUT_NLS) .if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes USE_GETTEXT= yes
PLIST_SUB+= NLS="" PLIST_SUB+= NLS=""
.else .else
@ -79,7 +77,7 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment " PLIST_SUB+= NLS="@comment "
.endif .endif
.if !defined(WITHOUT_ALC) .if ${PORT_OPTIONS:MALC}
CONFIGURE_ARGS+= --enable-alc CONFIGURE_ARGS+= --enable-alc
PLIST_SUB+= ALC="" PLIST_SUB+= ALC=""
.else .else
@ -87,7 +85,7 @@ CONFIGURE_ARGS+= --disable-alc
PLIST_SUB+= ALC="@comment " PLIST_SUB+= ALC="@comment "
.endif .endif
.if !defined(WITHOUT_ALCC) .if ${PORT_OPTIONS:MALCC}
CONFIGURE_ARGS+= --enable-alcc CONFIGURE_ARGS+= --enable-alcc
PLIST_SUB+= ALCC="" PLIST_SUB+= ALCC=""
.else .else
@ -95,7 +93,7 @@ CONFIGURE_ARGS+= --disable-alcc
PLIST_SUB+= ALCC="@comment " PLIST_SUB+= ALCC="@comment "
.endif .endif
.if !defined(WITHOUT_AMULECMD) .if ${PORT_OPTIONS:MAMULECMD}
CONFIGURE_ARGS+= --enable-amulecmd CONFIGURE_ARGS+= --enable-amulecmd
PLIST_SUB+= AMULECMD="" PLIST_SUB+= AMULECMD=""
.else .else
@ -103,7 +101,7 @@ CONFIGURE_ARGS+= --disable-amulecmd
PLIST_SUB+= AMULECMD="@comment " PLIST_SUB+= AMULECMD="@comment "
.endif .endif
.if !defined(WITHOUT_AMULEDAEMON) .if ${PORT_OPTIONS:MAMULEDAEMON}
CONFIGURE_ARGS+= --enable-amule-daemon CONFIGURE_ARGS+= --enable-amule-daemon
PLIST_SUB+= AMULEDAEMON="" PLIST_SUB+= AMULEDAEMON=""
USE_RC_SUBR= amuled USE_RC_SUBR= amuled
@ -112,7 +110,7 @@ CONFIGURE_ARGS+= --disable-amule-daemon
PLIST_SUB+= AMULEDAEMON="@comment " PLIST_SUB+= AMULEDAEMON="@comment "
.endif .endif
.if !defined(WITHOUT_AMULEGUI) .if ${PORT_OPTIONS:MAMULEGUI}
CONFIGURE_ARGS+= --enable-amule-gui CONFIGURE_ARGS+= --enable-amule-gui
PLIST_SUB+= AMULEGUI="" PLIST_SUB+= AMULEGUI=""
.else .else
@ -120,16 +118,16 @@ CONFIGURE_ARGS+= --disable-amule-gui
PLIST_SUB+= AMULEGUI="@comment " PLIST_SUB+= AMULEGUI="@comment "
.endif .endif
.if !defined(WITHOUT_CAS) .if ${PORT_OPTIONS:MCAS}
CONFIGURE_ARGS+= --enable-cas CONFIGURE_ARGS+= --enable-cas
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd LIB_DEPENDS+= gd:${PORTSDIR}/graphics/gd
PLIST_SUB+= CAS="" PLIST_SUB+= CAS=""
.else .else
CONFIGURE_ARGS+= --disable-cas CONFIGURE_ARGS+= --disable-cas
PLIST_SUB+= CAS="@comment " PLIST_SUB+= CAS="@comment "
.endif .endif
.if !defined(WITHOUT_ED2K) .if ${PORT_OPTIONS:MED2K}
CONFLICTS+= ed2k-hash* CONFLICTS+= ed2k-hash*
CONFIGURE_ARGS+= --enable-ed2k CONFIGURE_ARGS+= --enable-ed2k
PLIST_SUB+= ED2K="" PLIST_SUB+= ED2K=""
@ -138,7 +136,7 @@ CONFIGURE_ARGS+= --disable-ed2k
PLIST_SUB+= ED2K="@comment " PLIST_SUB+= ED2K="@comment "
.endif .endif
.if !defined(WITHOUT_FILEVIEW) .if ${PORT_OPTIONS:MFILEVIEW}
CONFIGURE_ARGS+= --enable-fileview CONFIGURE_ARGS+= --enable-fileview
PLIST_SUB+= FILEVIEW="" PLIST_SUB+= FILEVIEW=""
.else .else
@ -146,20 +144,20 @@ CONFIGURE_ARGS+= --disable-fileview
PLIST_SUB+= FILEVIEW="@comment " PLIST_SUB+= FILEVIEW="@comment "
.endif .endif
.if !defined(WITHOUT_GEOIP) .if ${PORT_OPTIONS:MGEOIP}
CONFIGURE_ARGS+= --enable-geoip CONFIGURE_ARGS+= --enable-geoip
LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP
.else .else
CONFIGURE_ARGS+= --disable-geoip CONFIGURE_ARGS+= --disable-geoip
.endif .endif
.if !defined(WITHOUT_MMAP) .if ${PORT_OPTIONS:MMMAP}
CONFIGURE_ARGS+= --enable-mmap CONFIGURE_ARGS+= --enable-mmap
.else .else
CONFIGURE_ARGS+= --disable-mmap CONFIGURE_ARGS+= --disable-mmap
.endif .endif
.if !defined(WITHOUT_MONOLITHIC) .if ${PORT_OPTIONS:MMONOLITHIC}
CONFIGURE_ARGS+= --enable-monolithic CONFIGURE_ARGS+= --enable-monolithic
PLIST_SUB+= MONOLITHIC="" PLIST_SUB+= MONOLITHIC=""
.else .else
@ -167,7 +165,7 @@ CONFIGURE_ARGS+= --disable-monolithic
PLIST_SUB+= MONOLITHIC="@comment " PLIST_SUB+= MONOLITHIC="@comment "
.endif .endif
.if !defined(WITHOUT_PLASMAMULE) .if ${PORT_OPTIONS:MPLASMAMULE}
CONFIGURE_ENV+= ac_cv_path_KDE4_CONFIG=${KDE4_PREFIX}/bin/kde4-config \ CONFIGURE_ENV+= ac_cv_path_KDE4_CONFIG=${KDE4_PREFIX}/bin/kde4-config \
KBUILDSYCOCA=${KDE4_PREFIX}/bin/kbuildsycoca4 \ KBUILDSYCOCA=${KDE4_PREFIX}/bin/kbuildsycoca4 \
UPDATE_MIME_DATABASE=/usr/bin/true UPDATE_MIME_DATABASE=/usr/bin/true
@ -180,13 +178,13 @@ CONFIGURE_ARGS+= --disable-plasmamule
PLIST_SUB+= PLASMAMULE="@comment " PLIST_SUB+= PLASMAMULE="@comment "
.endif .endif
.if !defined(WITHOUT_UPNP) .if ${PORT_OPTIONS:MUPNP}
LIB_DEPENDS+= upnp.9:${PORTSDIR}/devel/upnp LIB_DEPENDS+= upnp:${PORTSDIR}/devel/upnp
.else .else
CONFIGURE_ARGS+= --disable-upnp CONFIGURE_ARGS+= --disable-upnp
.endif .endif
.if !defined(WITHOUT_WEBSERVER) .if ${PORT_OPTIONS:MWEBSERVER}
CONFIGURE_ARGS+= --enable-webserver CONFIGURE_ARGS+= --enable-webserver
PLIST_SUB+= WEBSERVER="" PLIST_SUB+= WEBSERVER=""
.else .else
@ -194,7 +192,7 @@ CONFIGURE_ARGS+= --disable-webserver
PLIST_SUB+= WEBSERVER="@comment " PLIST_SUB+= WEBSERVER="@comment "
.endif .endif
.if !defined(WITHOUT_WXCAS) .if ${PORT_OPTIONS:MWXCAS}
CONFIGURE_ARGS+= --enable-wxcas CONFIGURE_ARGS+= --enable-wxcas
PLIST_SUB+= WXCAS="" PLIST_SUB+= WXCAS=""
.else .else
@ -202,11 +200,11 @@ CONFIGURE_ARGS+= --disable-wxcas
PLIST_SUB+= WXCAS="@comment " PLIST_SUB+= WXCAS="@comment "
.endif .endif
.if !defined(WITHOUT_WXUNICODE) .if ${PORT_OPTIONS:MWXUNICODE}
WX_UNICODE= yes WX_UNICODE= yes
.endif .endif
.if !defined(WITHOUT_XAS) .if ${PORT_OPTIONS:MXAS}
CONFIGURE_ARGS+= --enable-xas CONFIGURE_ARGS+= --enable-xas
PLIST_SUB+= XAS="" PLIST_SUB+= XAS=""
.else .else
@ -224,22 +222,22 @@ post-patch: .SILENT
${WRKSRC}/configure ${WRKSRC}/configure
${FIND} ${WRKSRC} -name \*.pl -exec ${REINPLACE_CMD} \ ${FIND} ${WRKSRC} -name \*.pl -exec ${REINPLACE_CMD} \
's|/usr/bin/perl|${PERL}|' {} + 's|/usr/bin/perl|${PERL}|' {} +
.if defined(NOPORTDOCS) .if empty(PORT_OPTIONS:MDOCS)
${REINPLACE_CMD} 's/install-data-am:.*/install-data-am:/' \ ${REINPLACE_CMD} 's/install-data-am:.*/install-data-am:/' \
${WRKSRC}/docs/Makefile.in ${WRKSRC}/docs/Makefile.in
.endif .endif
.if !defined(WITHOUT_PLASMAMULE) .if ${PORT_OPTIONS:MPLASMAMULE}
${REINPLACE_CMD} -e 's|@prefix@|${KDE4_PREFIX}|' \ ${REINPLACE_CMD} -e 's|@prefix@|${KDE4_PREFIX}|' \
-e 's|LDFLAGS =|& -L${KDE4_PREFIX}/lib |' \ -e 's|LDFLAGS =|& -L${KDE4_PREFIX}/lib |' \
${WRKSRC}/src/utils/plasmamule/Makefile.in ${WRKSRC}/src/utils/plasmamule/Makefile.in
.endif .endif
post-install: post-install:
.if !defined(WITHOUT_FILEVIEW) .if ${PORT_OPTIONS:MFILEVIEW}
${INSTALL_PROGRAM} ${WRKSRC}/src/utils/fileview/mulefileview ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/src/utils/fileview/mulefileview ${PREFIX}/bin
.endif .endif
.if exists(${LOCALBASE}/bin/update-desktop-database) .if exists(${LOCALBASE}/bin/update-desktop-database)
. if !defined(WITHOUT_PLASMAMULE) . if ${PORT_OPTIONS:MPLASMAMULE}
-update-desktop-database ${KDE4_PREFIX}/share/applications -update-desktop-database ${KDE4_PREFIX}/share/applications
. if exists(${LOCALBASE}/bin/update-mime-database) . if exists(${LOCALBASE}/bin/update-mime-database)
-update-mime-database ${KDE4_PREFIX}/share/mime -update-mime-database ${KDE4_PREFIX}/share/mime

View File

@ -1,38 +1,38 @@
MANLANG= "" de es fr hu it ru tr MANLANG= "" de es fr hu it ru tr
.if !defined(WITHOUT_NLS) .if ${PORT_OPTIONS:MNLS}
. if !defined(WITHOUT_MONOLITHIC) . if ${PORT_OPTIONS:MMONOLITHIC}
MAN1+= amule.1 MAN1+= amule.1
. endif . endif
. if !defined(WITHOUT_ALC) . if ${PORT_OPTIONS:MALC}
MAN1+= alc.1 MAN1+= alc.1
. endif . endif
. if !defined(WITHOUT_ALCC) . if ${PORT_OPTIONS:MALCC}
MAN1+= alcc.1 MAN1+= alcc.1
. endif . endif
. if !defined(WITHOUT_AMULECMD) . if ${PORT_OPTIONS:MAMULECMD}
MAN1+= amulecmd.1 MAN1+= amulecmd.1
. endif . endif
. if !defined(WITHOUT_AMULEDAEMON) . if ${PORT_OPTIONS:MAMULEDAEMON}
MAN1+= amuled.1 MAN1+= amuled.1
. endif . endif
. if !defined(WITHOUT_AMULEGUI) . if ${PORT_OPTIONS:MAMULEGUI}
MAN1+= amulegui.1 MAN1+= amulegui.1
. endif . endif
. if !defined(WITHOUT_CAS) . if ${PORT_OPTIONS:MCAS}
MAN1+= cas.1 MAN1+= cas.1
. endif . endif
. if !defined(WITHOUT_ED2K) . if ${PORT_OPTIONS:MED2K}
MAN1+= ed2k.1 MAN1+= ed2k.1
. endif . endif
. if !defined(WITHOUT_WEBSERVER) . if ${PORT_OPTIONS:MWEBSERVER}
MAN1+= amuleweb.1 MAN1+= amuleweb.1
. endif . endif
. if !defined(WITHOUT_WXCAS) . if ${PORT_OPTIONS:MWXCAS}
MAN1+= wxcas.1 MAN1+= wxcas.1
. endif . endif
.endif # !WITHOUT_NLS .endif
.if !defined(WITHOUT_XAS) .if ${PORT_OPTIONS:MXAS}
MAN1+= xas.1 MAN1+= xas.1
.endif .endif