Clean up the port's makefile
- Sort variables - Use post-install-DOCS-on instead of an if statement based on PORT_OPTIONS Approved by: portmgr blanket
This commit is contained in:
parent
798b6e023b
commit
c8d86cf132
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553876
@ -15,41 +15,39 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LIB_DEPENDS= libavahi-client.so:net/avahi-app
|
||||
|
||||
USES= autoreconf gmake libtool pkgconfig
|
||||
CONFLICTS_INSTALL= mDNSResponder_nss-[0-9]*
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= lathiat
|
||||
GH_PROJECT= nss-mdns
|
||||
GH_TAGNAME= 99c2f1c
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --localstatedir=/var \
|
||||
--sysconfdir=/etc
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
CONFLICTS_INSTALL= mDNSResponder_nss-[0-9]*
|
||||
|
||||
# TODO: Print a message about the etc directory used for mdns.allow
|
||||
# being relative to ${PREFIX}.
|
||||
PLIST_FILES= ${INSTALLED_MODULES:C/^/lib\//:C/$/.so.1/} \
|
||||
${INSTALLED_MODULES:C/^/lib\//:C/$/.so/}
|
||||
PORTDOCS= README.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var
|
||||
|
||||
INSTALLED_MODULES= nss_mdns nss_mdns_minimal \
|
||||
nss_mdns4 nss_mdns4_minimal \
|
||||
nss_mdns4 nss_mdns4_minimal \
|
||||
nss_mdns6 nss_mdns6_minimal
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
.for INSTALLED_MODULE in ${INSTALLED_MODULES}
|
||||
${LN} -s ${INSTALLED_MODULE}.so.1 ${STAGEDIR}${PREFIX}/lib/${INSTALLED_MODULE}.so
|
||||
.endfor
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
|
||||
post-install-DOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
# TODO: Print a message about the etc directory used for mdns.allow
|
||||
# being relative to ${PREFIX}.
|
||||
PLIST_FILES= ${INSTALLED_MODULES:C/^/lib\//:C/$/.so/} ${INSTALLED_MODULES:C/^/lib\//:C/$/.so.1/}
|
||||
PORTDOCS= README.md
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user