summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-12-24 22:01:22 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-12-24 22:01:22 +0000
commit3f4f9547c968cf1d4b8a1a8946dc20173ac4150a (patch)
tree405d8f3e7f90544ac9602a2904ee805085666d49 /graphics
parentmath/sdpara: Unbreak on FreeBSD 10+ (diff)
- Fix build with clang
- Add LICENSE - Support staging PR: ports/184834 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=337392
Diffstat (limited to 'graphics')
-rw-r--r--graphics/chbg/Makefile21
-rw-r--r--graphics/chbg/pkg-plist1
2 files changed, 10 insertions, 12 deletions
diff --git a/graphics/chbg/Makefile b/graphics/chbg/Makefile
index 70b5470e7481..7530d3d6e687 100644
--- a/graphics/chbg/Makefile
+++ b/graphics/chbg/Makefile
@@ -11,23 +11,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Change Background Picture with time period
-LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
+LICENSE= GPLv2 # (or later)
+LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
+
+USES= gmake gettext pathfix
USE_GNOME= gdkpixbuf
-USE_GMAKE= yes
-USES= gettext
GNU_CONFIGURE= yes
-CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
-CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --disable-gnome
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-MAN1= chbg.1
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|^guint argc|gint argc|' ${WRKSRC}/src/chbg.c
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/chbg/pkg-plist b/graphics/chbg/pkg-plist
index 9a42c11ddd3a..9b27b19ad82b 100644
--- a/graphics/chbg/pkg-plist
+++ b/graphics/chbg/pkg-plist
@@ -1,4 +1,5 @@
bin/chbg
+man/man1/chbg.1.gz
share/locale/de/LC_MESSAGES/chbg.mo
share/locale/fr/LC_MESSAGES/chbg.mo
share/locale/sk/LC_MESSAGES/chbg.mo