diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-11-23 18:54:44 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-11-23 18:54:44 +0000 |
commit | 61c14f8058368fefa49d60d34023ebd3cf1c301b (patch) | |
tree | 88de141d40f25166e8ce0c691774c6cf4bf3c50a /sysutils/pacman | |
parent | a34ab9824b063afcaec372b111bf3a27c48f0533 (diff) |
Notes
Diffstat (limited to 'sysutils/pacman')
-rw-r--r-- | sysutils/pacman/Makefile | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/sysutils/pacman/Makefile b/sysutils/pacman/Makefile index 9c37b0095c0a..30a06af7953a 100644 --- a/sysutils/pacman/Makefile +++ b/sysutils/pacman/Makefile @@ -3,7 +3,7 @@ PORTNAME= pacman PORTVERSION= 4.2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.archlinux.org/other/pacman/ \ http://mirror.amdmi3.ru/distfiles/ @@ -15,55 +15,41 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= asciidoc:textproc/asciidoc \ - bash:shells/bash + bash:shells/bash \ + gm4:devel/m4 RUN_DEPENDS= bash:shells/bash LIB_DEPENDS= libarchive.so.13:archivers/libarchive -USES= gmake libtool pathfix perl5 pkgconfig shebangfix +USES= gmake libtool localbase:ldflags pathfix perl5 pkgconfig shebangfix SHEBANG_FILES= ${WRKSRC}/scripts/makepkg-template.pl.in GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-root-dir="${PACMAN_ROOT}" \ --localstatedir=/var USE_LDCONFIG= yes -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - SUB_FILES= pkg-message pkg-deinstall SUB_LIST= PACMAN_ROOT="${PACMAN_ROOT}" PREFIX="${PREFIX}" PLIST_SUB= PACMAN_ROOT="${PACMAN_ROOT:C/^${PREFIX}//}" -PACMAN_ROOT?= "${PREFIX}/pacman" +PACMAN_ROOT?= ${PREFIX}/pacman PORTEXAMPLES= * OPTIONS_DEFINE= CURL GPGME EXAMPLES NLS OPTIONS_DEFAULT=CURL GPGME +OPTIONS_SUB= yes + CURL_DESC= Use libcurl fetcher instead of external curl/wget +CURL_CONFIGURE_WITH= libcurl=${LOCALBASE} +CURL_LIB_DEPENDS= libcurl.so:ftp/curl GPGME_DESC= Use GPGME for PGP signature verification +GPGME_CONFIGURE_WITH= gpgme +GPGME_LIB_DEPENDS= libgpgme.so:security/gpgme +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MCURL} -CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE} -LIB_DEPENDS+= libcurl.so:ftp/curl -.else -CONFIGURE_ARGS+=--without-libcurl -.endif - -.if ${PORT_OPTIONS:MGPGME} -CONFIGURE_ARGS+=--with-gpgme -LIB_DEPENDS+= libgpgme.so:security/gpgme -.endif - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif - post-patch: @${REINPLACE_CMD} -e 's|m4|gm4|' ${WRKSRC}/scripts/Makefile.in @${REINPLACE_CMD} -e '2 s/.*/exit 0/' ${WRKSRC}/build-aux/missing @@ -83,9 +69,11 @@ post-install: .for f in makepkg.conf pacman.conf ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${STAGEDIR}${PREFIX}/etc/${f}.sample .endfor - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/PKGBUILD-example.txt ${STAGEDIR}${EXAMPLESDIR}/ - ${MKDIR} ${STAGEDIR}${PACMAN_ROOT} + @${MKDIR} ${STAGEDIR}${PACMAN_ROOT} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libalpm.so +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/PKGBUILD-example.txt ${STAGEDIR}${EXAMPLESDIR}/ + .include <bsd.port.mk> |