2012-11-10 13:08:00 +01:00
|
|
|
# Created by: Hye-Shik Chang <perky@python.or.kr>
|
2001-05-20 05:01:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xosd
|
2010-06-08 03:18:08 +02:00
|
|
|
PORTVERSION= 2.2.14
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2001-05-20 05:01:55 +02:00
|
|
|
CATEGORIES= misc
|
2012-11-10 13:08:00 +01:00
|
|
|
MASTER_SITES= SF/libxosd/libxosd/${PORTNAME}-${PORTVERSION}
|
2001-05-20 05:01:55 +02:00
|
|
|
|
2010-05-23 23:16:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-11-10 13:08:00 +01:00
|
|
|
COMMENT= X11 on-screen-display program and library
|
2001-05-20 05:01:55 +02:00
|
|
|
|
2012-11-10 13:08:00 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-11 18:45:58 +02:00
|
|
|
USES= gmake pkgconfig
|
2012-11-10 13:08:00 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
|
|
|
USE_CSTD= gnu89
|
2008-06-01 00:04:39 +02:00
|
|
|
USE_XORG= x11 xext xt sm ice
|
2007-03-23 21:16:40 +01:00
|
|
|
USE_LDCONFIG= yes
|
2003-07-14 04:53:03 +02:00
|
|
|
CONFIGURE_ENV= LIBS=${PTHREAD_LIBS}' -L${LOCALBASE}/lib' \
|
2011-07-14 16:15:52 +02:00
|
|
|
LOCALBASE='${LOCALBASE}' \
|
2002-10-26 00:06:03 +02:00
|
|
|
GTK_CONFIG='${GTK_CONFIG}' GLIB_CONFIG='${GLIB_CONFIG}' \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
XMMS_PLUGINDIR=${LOCALBASE}/lib/xmms
|
2012-11-10 13:08:00 +01:00
|
|
|
CONFIGURE_ARGS= --disable-beep_media_player_plugin
|
2012-11-13 14:56:37 +01:00
|
|
|
PATCH_STRIP= -p1
|
2004-06-04 07:05:34 +02:00
|
|
|
|
2012-11-10 13:08:00 +01:00
|
|
|
PORTDOCS= AUTHORS ChangeLog TODO
|
2004-06-04 07:05:34 +02:00
|
|
|
|
2012-11-13 14:56:37 +01:00
|
|
|
OPTIONS_DEFINE= XMMS MSEC XFT DOCS
|
2012-06-29 14:42:04 +02:00
|
|
|
OPTIONS_DEFAULT= XMMS
|
2012-11-10 13:08:00 +01:00
|
|
|
XMMS_DESC= Build and install XMMS-OSD plugin
|
|
|
|
MSEC_DESC= Use milliseconds timeout (breaks compatibility!)
|
2012-11-10 17:30:46 +01:00
|
|
|
XFT_DESC= Unofficial Xft support
|
2004-06-04 07:05:34 +02:00
|
|
|
|
2013-12-09 15:19:40 +01:00
|
|
|
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
|
|
|
|
|
2012-07-06 10:17:30 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-06-04 07:05:34 +02:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MXMMS}
|
2012-11-10 13:08:00 +01:00
|
|
|
COMMENT+= (with XMMS plugin)
|
2003-05-06 14:40:24 +02:00
|
|
|
.endif
|
2001-05-20 05:01:55 +02:00
|
|
|
|
2012-11-10 13:08:00 +01:00
|
|
|
.if ${PORT_OPTIONS:MMSEC}
|
2012-11-10 17:30:46 +01:00
|
|
|
DELAY_UNITS= milliseconds
|
2012-11-10 13:08:00 +01:00
|
|
|
.else
|
|
|
|
DELAY_UNITS= seconds
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS}, ; \
|
|
|
|
s,echo aout,echo elf,' ${WRKSRC}/configure
|
|
|
|
@${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
|
2012-11-14 15:49:51 +01:00
|
|
|
.if ${PORT_OPTIONS:MXFT} # unbreak against Clang
|
2012-11-14 15:41:42 +01:00
|
|
|
@${REINPLACE_CMD} -e '52s,^,void xosd_xypos(xosd *osd);,' \
|
|
|
|
${WRKSRC}/src/libxosd/xosd.c
|
2012-11-14 15:49:51 +01:00
|
|
|
.endif
|
2012-11-10 13:08:00 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-12-09 15:19:40 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2001-05-20 05:01:55 +02:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.mk>
|