aboutsummaryrefslogtreecommitdiff
path: root/graphics/showimg/Makefile
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2006-03-24 20:59:09 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2006-03-24 20:59:09 +0000
commitc278838e5059e0c6f866f1902e8106b9b7f99f8e (patch)
tree3f75b88eaee0e64be2a3ef44cbec73c27e4901c0 /graphics/showimg/Makefile
parentebe89309c3f9e2a4fe97a5d71d5eaa75635f5f51 (diff)
downloadports-c278838e5059e0c6f866f1902e8106b9b7f99f8e.tar.gz
ports-c278838e5059e0c6f866f1902e8106b9b7f99f8e.zip
Notes
Diffstat (limited to 'graphics/showimg/Makefile')
-rw-r--r--graphics/showimg/Makefile61
1 files changed, 41 insertions, 20 deletions
diff --git a/graphics/showimg/Makefile b/graphics/showimg/Makefile
index 38c4ded10b91..194c8fda0fdd 100644
--- a/graphics/showimg/Makefile
+++ b/graphics/showimg/Makefile
@@ -7,37 +7,58 @@
#
PORTNAME= showimg
-PORTVERSION= 0.9.5.r.1
-PORTREVISION= 3
+PORTVERSION= 0.9.5
PORTEPOCH= 1
CATEGORIES= graphics
-MASTER_SITES= http://www.jalix.org/projects/showimg/download/.0.9.5/distributions/SVN_info/
-DISTNAME= showimg-0.9.5-rc1
+MASTER_SITES= http://www.jalix.org/projects/${PORTNAME}/download/${PORTVERSION}/ \
+ http://vxj-se.lunar-linux.org/lunar/cache/
MAINTAINER= shelton@granch.ru
COMMENT= A picture viewer designed to run under KDE 3.x
-LIB_DEPENDS= kipi:${PORTSDIR}/graphics/libkipi \
- kexif:${PORTSDIR}/graphics/libkexif
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_KDEBASE_VER= 3
+USE_AUTOTOOLS= libtool:15
+INSTALLS_SHLIB= yes
+CONFIGURE_ARGS+= --disable-pgsql
-BROKEN= Does not compile
+OPTIONS= KIPI "Support for libkipi" on \
+ KEXIF "Support for kexif" on \
+ KEXIDB "Support for KexiDB/ShowimgDB" on \
+ MYSQL "Build MySQL plugin for KexiDB" off \
-USE_BZIP2= yes
-USE_KDEBASE_VER= 3
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-USE_REINPLACE= yes
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_KIPI)
+CONFIGURE_ARGS+=--disable-libkipi
+.else
+LIB_DEPENDS+= kipi:${PORTSDIR}/graphics/libkipi
+.endif
-INSTALLS_SHLIB= yes
-LDCONFIG_DIRS= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
+.if defined(WITHOUT_KEXIF)
+CONFIGURE_ARGS+=--without-kexif
+.else
+LIB_DEPENDS+= kexif:${PORTSDIR}/graphics/libkexif
+.endif
-CONFIGURE_ARGS+= --disable-debug
+.if defined(WITHOUT_KEXIDB) && defined(WITHOUT_MYSQL)
+CONFIGURE_ARGS+=--without-showimgdb
+PLIST_SUB+= KEXIDB="@comment "
+.else
+PLIST_SUB+= KEXIDB=""
+.endif
-post-extract:
- @${TOUCH} ${WRKSRC}/config.h.in
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+PLIST_SUB+= MYSQL=""
+.else
+CONFIGURE_ARGS+=--disable-mysql
+PLIST_SUB+= MYSQL="@comment "
+.endif
post-patch:
- @${REINPLACE_CMD} -e 's|-O2||g' \
- ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e '347,365d' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>