summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-12-09 14:19:40 +0000
committerdanilo <danilo@FreeBSD.org>2013-12-09 14:19:40 +0000
commitd1ffe7ebce64872c17328742e8e349d7e10f30e9 (patch)
tree6af67ed63b727dce2ff51e059f08779731c3725c
parentacbed4ef2a817d1c46b241c129984da5a51abf4d (diff)
downloadFreeBSD-ports-d1ffe7ebce64872c17328742e8e349d7e10f30e9.zip
FreeBSD-ports-d1ffe7ebce64872c17328742e8e349d7e10f30e9.tar.gz
- Add stage support
- Use options helpers - Convert LIB_DEPENDS to new syntax
-rw-r--r--misc/xosd/Makefile40
-rw-r--r--misc/xosd/pkg-plist17
2 files changed, 30 insertions, 27 deletions
diff --git a/misc/xosd/Makefile b/misc/xosd/Makefile
index db253f9..b60beec 100644
--- a/misc/xosd/Makefile
+++ b/misc/xosd/Makefile
@@ -24,13 +24,6 @@ CONFIGURE_ENV= LIBS=${PTHREAD_LIBS}' -L${LOCALBASE}/lib' \
CONFIGURE_ARGS= --disable-beep_media_player_plugin
PATCH_STRIP= -p1
-MAN1= osd_cat.1 xosd-config.1
-MAN3= xosd.3 xosd_create.3 xosd_destroy.3 xosd_display.3 \
- xosd_get_number_lines.3 xosd_hide.3 xosd_is_onscreen.3 \
- xosd_set_align.3 xosd_set_bar_length.3 \
- xosd_set_horizontal_offset.3 xosd_set_pos.3 \
- xosd_set_shadow_offset.3 xosd_set_vertical_offset.3 \
- xosd_show.3 xosd_uninit.3
PORTDOCS= AUTHORS ChangeLog TODO
OPTIONS_DEFINE= XMMS MSEC XFT DOCS
@@ -39,34 +32,29 @@ XMMS_DESC= Build and install XMMS-OSD plugin
MSEC_DESC= Use milliseconds timeout (breaks compatibility!)
XFT_DESC= Unofficial Xft support
-NO_STAGE= yes
+OPTIONS_SUB= yes
+
+XMMS_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms \
+ libgdk_pixbuf.so:${PORTSDIR}/graphics/gdk-pixbuf
+XMMS_CONFIGURE_ENABLE= new-plugin
+
+MSEC_EXTRA_PATCHES= ${FILESDIR}/extra-patch-msec-timeout
+
+XFT_EXTRA_PATCHES= ${FILESDIR}/extra-patch-xft
+XFT_USE= GNOME=pango XORG=xft
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXMMS}
COMMENT+= (with XMMS plugin)
-LIB_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms \
- gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
-# shlib version is needed for libgdk_pixbuf, otherwise it could be bogusly
-# satisfied by installed `graphics/gdk-pixbuf2'
-PLIST_SUB= XMMS=""
-.else
-CONFIGURE_ARGS+= --disable-new-plugin
-PLIST_SUB= XMMS="@comment "
.endif
.if ${PORT_OPTIONS:MMSEC}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-msec-timeout
DELAY_UNITS= milliseconds
.else
DELAY_UNITS= seconds
.endif
-.if ${PORT_OPTIONS:MXFT}
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-xft
-USE_GNOME= pango
-USE_XORG+= xft
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS}, ; \
s,echo aout,echo elf,' ${WRKSRC}/configure
@@ -81,9 +69,7 @@ post-patch:
.endif
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/misc/xosd/pkg-plist b/misc/xosd/pkg-plist
index c074565..f52af9b 100644
--- a/misc/xosd/pkg-plist
+++ b/misc/xosd/pkg-plist
@@ -5,6 +5,23 @@ lib/libxosd.a
lib/libxosd.la
lib/libxosd.so
lib/libxosd.so.4
+man/man1/osd_cat.1.gz
+man/man1/xosd-config.1.gz
+man/man3/xosd.3.gz
+man/man3/xosd_create.3.gz
+man/man3/xosd_destroy.3.gz
+man/man3/xosd_display.3.gz
+man/man3/xosd_get_number_lines.3.gz
+man/man3/xosd_hide.3.gz
+man/man3/xosd_is_onscreen.3.gz
+man/man3/xosd_set_align.3.gz
+man/man3/xosd_set_bar_length.3.gz
+man/man3/xosd_set_horizontal_offset.3.gz
+man/man3/xosd_set_pos.3.gz
+man/man3/xosd_set_shadow_offset.3.gz
+man/man3/xosd_set_vertical_offset.3.gz
+man/man3/xosd_show.3.gz
+man/man3/xosd_uninit.3.gz
share/aclocal/libxosd.m4
%%DATADIR%%/bottom-left.png
%%DATADIR%%/bottom-right.png
OpenPOWER on IntegriCloud