freebsd-ports/graphics/showimg/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

65 lines
1.4 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: showimg
# Date created: Mar 12, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= showimg
PORTVERSION= 0.9.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= http://www.jalix.org/projects/${PORTNAME}/download/${PORTVERSION}/ \
http://vxj-se.lunar-linux.org/lunar/cache/
MAINTAINER= achilov-rn@askd.ru
COMMENT= A picture viewer designed to run under KDE 3.x
USE_BZIP2= yes
USE_GMAKE= yes
USE_KDEBASE_VER= 3
USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
CONFIGURE_ARGS+= --disable-pgsql
OPTIONS= KIPI "Support for libkipi" on \
KEXIF "Support for kexif" on \
KEXIDB "Support for KexiDB/ShowimgDB" on \
MYSQL "Build MySQL plugin for KexiDB" off \
.include <bsd.port.pre.mk>
.if defined(WITHOUT_KIPI)
CONFIGURE_ARGS+=--disable-libkipi
.else
LIB_DEPENDS+= kipi:${PORTSDIR}/graphics/libkipi
.endif
.if defined(WITHOUT_KEXIF)
CONFIGURE_ARGS+=--without-kexif
.else
LIB_DEPENDS+= kexif:${PORTSDIR}/graphics/libkexif
.endif
.if defined(WITHOUT_KEXIDB) && defined(WITHOUT_MYSQL)
CONFIGURE_ARGS+=--without-showimgdb
PLIST_SUB+= KEXIDB="@comment "
.else
PLIST_SUB+= KEXIDB=""
.endif
.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 '347,365d' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.post.mk>