- Switch to options helpers
Approved by: portmgr blanket
This commit is contained in:
parent
cf80afdc67
commit
252919ca0a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464383
@ -26,27 +26,21 @@ OPTIONS_SUB= yes
|
||||
|
||||
NLS_USES= gettext
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
# Correct Permissions
|
||||
${CHMOD} 664 ${WRKSRC}/icons/*
|
||||
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
post-patch-DOCS-off:
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
|
||||
s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
|
||||
${WRKSRC}/Makefile
|
||||
.endif
|
||||
-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
|
||||
s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
.if ! ${PORT_OPTIONS:MNLS}
|
||||
post-patch-NLS-off:
|
||||
@${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \
|
||||
${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
||||
|
Loading…
Reference in New Issue
Block a user