aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-03-29 02:43:58 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-03-29 02:43:58 +0800
commit381027f1d42eb05c0fad05b6b202c2af98cb87e1 (patch)
tree1afda527fdff8f79fac6e677ccd0ee048a966278 /misc
parent970e4e735e3cadf61497ddd4415eb67430fe6790 (diff)
downloadfreebsd-ports-gnome-381027f1d42eb05c0fad05b6b202c2af98cb87e1.tar.gz
freebsd-ports-gnome-381027f1d42eb05c0fad05b6b202c2af98cb87e1.tar.zst
freebsd-ports-gnome-381027f1d42eb05c0fad05b6b202c2af98cb87e1.zip
- Clarify LICENSE
- Add LICENSE_FILE - Switch to options helpers
Diffstat (limited to 'misc')
-rw-r--r--misc/xosd/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/misc/xosd/Makefile b/misc/xosd/Makefile
index fe5c0ece3b8a..043835897980 100644
--- a/misc/xosd/Makefile
+++ b/misc/xosd/Makefile
@@ -10,7 +10,8 @@ MASTER_SITES= SF/libxosd/libxosd/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= X11 on-screen-display program and library
-LICENSE= GPLv2
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake pkgconfig libtool
USE_CSTD= gnu89
@@ -31,30 +32,25 @@ XFT_DESC= Unofficial Xft support
OPTIONS_SUB= yes
MSEC_EXTRA_PATCHES= ${FILESDIR}/extra-patch-msec-timeout
+MSEC_VARS= DELAY_UNITS=milliseconds
+MSEC_VARS_OFF= DELAY_UNITS=seconds
XFT_EXTRA_PATCHES= ${FILESDIR}/extra-patch-xft
XFT_USE= GNOME=pango XORG=xft
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMSEC}
-DELAY_UNITS= milliseconds
-.else
-DELAY_UNITS= seconds
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's,^\(CFLAGS =\)\(.*\)$$,\1 -I..\2,' \
${WRKSRC}/src/libxosd/Makefile.in \
${WRKSRC}/src/xmms_plugin/Makefile.in
@${REINPLACE_CMD} -e 's,specified time,& (${DELAY_UNITS}),' \
${WRKSRC}/src/osd_cat.c
-.if ${PORT_OPTIONS:MXFT} # unbreak against Clang
+
+post-patch-XFT-on:
+# unbreak against Clang
@${REINPLACE_CMD} -e '52s,^,void xosd_xypos(xosd *osd);,' \
${WRKSRC}/src/libxosd/xosd.c
-.endif
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}