2008-07-21 19:07:41 +00:00
|
|
|
# New ports collection makefile for: tint
|
|
|
|
# Date created: 21 July 2008
|
|
|
|
# Whom: dougb@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-07-11 09:02:34 +00:00
|
|
|
PORTNAME= tint2
|
2010-04-01 17:52:17 +00:00
|
|
|
PORTVERSION= 0.9
|
2008-07-21 19:07:41 +00:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
|
|
|
|
MAINTAINER= dougb@FreeBSD.org
|
2009-07-11 09:02:34 +00:00
|
|
|
COMMENT= Lightweight freedesktop-compliant panel/taskbar/systray/clock
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2009-08-06 16:26:07 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2008-07-21 19:07:41 +00:00
|
|
|
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
|
|
|
|
|
|
|
|
PROJECTHOST= tint2
|
2009-07-11 09:02:34 +00:00
|
|
|
USE_GNOME= pango glib20
|
2010-04-01 18:11:50 +00:00
|
|
|
USE_XORG= xinerama xrandr xdamage xcomposite
|
2008-07-21 19:07:41 +00:00
|
|
|
USE_EFL= imlib2
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2009-07-11 09:02:34 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2010-04-01 17:52:17 +00:00
|
|
|
CONFIGURE_ARGS= --disable-battery --disable-tint2conf
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2009-07-11 09:02:34 +00:00
|
|
|
PLIST_FILES= bin/tint2 \
|
2010-04-01 17:52:17 +00:00
|
|
|
etc/xdg/tint2/tint2rc \
|
|
|
|
share/tint2/default_icon.png
|
|
|
|
PLIST_DIRS= etc/xdg/tint2 \
|
|
|
|
share/tint2
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2009-07-11 09:02:34 +00:00
|
|
|
MAN1= tint2.1
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS ChangeLog README NEWS
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2010-04-15 22:23:45 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
BROKEN= does not link
|
|
|
|
.endif
|
|
|
|
|
2008-07-21 19:07:41 +00:00
|
|
|
post-patch:
|
2009-07-11 09:02:34 +00:00
|
|
|
@${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed
|
|
|
|
@${SED} -e "s# install-dist_docDATA##" \
|
|
|
|
${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in
|
2009-08-06 16:26:07 +00:00
|
|
|
@${CP} ${WRKSRC}/src/tint.c ${WRKSRC}/src/tint.c.presed
|
|
|
|
@${SED} -e "s#SIGCLD#SIGCHLD#g" ${WRKSRC}/src/tint.c.presed > \
|
|
|
|
${WRKSRC}/src/tint.c
|
2008-07-21 19:07:41 +00:00
|
|
|
|
2008-07-25 18:44:03 +00:00
|
|
|
pre-install:
|
2010-04-01 17:52:17 +00:00
|
|
|
@${ECHO} "rmdir ${X11BASE}/etc/xdg 2>/dev/null || true" > \
|
2008-07-25 18:44:03 +00:00
|
|
|
${WRKDIR}/pkg-deinstall
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
|
2008-07-21 19:07:41 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2009-07-11 09:02:34 +00:00
|
|
|
.for file in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
2008-07-21 19:07:41 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2010-04-01 17:52:17 +00:00
|
|
|
@for file in ${RCS}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/$${file} ${EXAMPLESDIR}; \
|
|
|
|
done
|
|
|
|
RCS= black_single_desktop.tint2rc default.tint2rc horizontal_icon_only.tint2rc rounded_multi_desktop.tint2rc tint2rc vertical_icon_only.tint2rc white_single_desktop.tint2rc
|
|
|
|
.for file in ${RCS}
|
|
|
|
PLIST_FILES+= ${EXAMPLESDIR_REL}/${file}
|
2008-07-21 19:07:41 +00:00
|
|
|
.endfor
|
|
|
|
PLIST_DIRS+= ${EXAMPLESDIR_REL}
|
|
|
|
.endif
|
|
|
|
|
2010-04-15 22:23:45 +00:00
|
|
|
.include <bsd.port.post.mk>
|