aboutsummaryrefslogtreecommitdiff
path: root/graphics/libcaca
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-10-19 00:32:07 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-10-19 00:32:07 +0000
commit39661a44f664be58cb3737511381070df91efc0a (patch)
treed15ad6ba6fa25a7193fd85fff41e0ce47a714705 /graphics/libcaca
parentc28bedeb1691f84cbc3899edf82cadaa89e28d00 (diff)
downloadports-39661a44f664be58cb3737511381070df91efc0a.tar.gz
ports-39661a44f664be58cb3737511381070df91efc0a.zip
Notes
Diffstat (limited to 'graphics/libcaca')
-rw-r--r--graphics/libcaca/Makefile40
-rw-r--r--graphics/libcaca/pkg-plist7
2 files changed, 18 insertions, 29 deletions
diff --git a/graphics/libcaca/Makefile b/graphics/libcaca/Makefile
index d6f17a668e32..fdcc7f3659f0 100644
--- a/graphics/libcaca/Makefile
+++ b/graphics/libcaca/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libcaca
DISTVERSION= 0.99.beta18
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://caca.zoy.org/raw-attachment/wiki/libcaca/
@@ -25,35 +25,17 @@ CONFIGURE_ARGS= --disable-doc \
DOCS= AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS \
NOTES README THANKS
-MAN1= caca-config.1 cacademo.1 cacafire.1 cacaplay.1 cacaserver.1 \
- cacaview.1 img2txt.1
OPTIONS_DEFINE= X11 IMLIB2 SLANG DOCS
OPTIONS_DEFAULT= X11 IMLIB2
X11_DESC= X11 and OpenGL support
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MX11}
-USE_XORG= x11
-USE_GL= glut
-.else
-CONFIGURE_ARGS+=--disable-x11 --disable-gl
-.endif
-
-.if ${PORT_OPTIONS:MIMLIB2}
-USE_EFL+= imlib2
-.else
-CONFIGURE_ARGS+=--disable-imlib2
-.endif
-
-.if ${PORT_OPTIONS:MSLANG}
-LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
-CONFIGURE_ARGS+=--enable-slang
-.else
-CONFIGURE_ARGS+=--disable-slang
-.endif
+X11_USE= XORG=x11 GL=glut
+X11_CONFIGURE_OFF= --disable-x11 --disable-gl
+IMLIB2_USE= EFL=imlib2
+IMLIB2_CONFIGURE_ENABLE= imlib2
+SLANG_LIB_DEPENDS= libslang.so.2:${PORTSDIR}/devel/libslang2
+SLANG_CONFIGURE_ENABLE= slang
post-patch:
@${REINPLACE_CMD} -e 's|-g -O2 ||g ; s| -fomit-frame-pointer||g ; \
@@ -61,10 +43,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|: install-docDATA|:|g ; s| csharp||g' \
${WRKSRC}/Makefile.in
-.if ${PORT_OPTIONS:MDOCS}
post-install:
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcaca++.so.0
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcaca.so.0
.include <bsd.port.mk>
diff --git a/graphics/libcaca/pkg-plist b/graphics/libcaca/pkg-plist
index ec8b716b4c4f..03a844f8f5df 100644
--- a/graphics/libcaca/pkg-plist
+++ b/graphics/libcaca/pkg-plist
@@ -30,6 +30,13 @@ libdata/pkgconfig/caca++.pc
libdata/pkgconfig/caca.pc
libdata/pkgconfig/cucul++.pc
libdata/pkgconfig/cucul.pc
+man/man1/caca-config.1.gz
+man/man1/cacademo.1.gz
+man/man1/cacafire.1.gz
+man/man1/cacaplay.1.gz
+man/man1/cacaserver.1.gz
+man/man1/cacaview.1.gz
+man/man1/img2txt.1.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/COPYING.GPL