2002-11-24 02:06:12 +01:00
|
|
|
# New ports collection Makefile for: pornview
|
|
|
|
# Date created: 24 Nov 2002
|
|
|
|
# Whom: Tilman Linneweh <arved@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pornview
|
2003-04-05 19:30:51 +02:00
|
|
|
PORTVERSION= 0.2.0.p.1
|
2009-01-08 18:12:23 +01:00
|
|
|
PORTREVISION= 19
|
2002-11-24 02:06:12 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-04-05 19:30:51 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p./pre/}
|
2002-11-24 02:06:12 +01:00
|
|
|
|
2005-08-28 11:19:42 +02:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= PornView is an image viewer/manager
|
2002-11-24 02:06:12 +01:00
|
|
|
|
2007-05-27 17:25:47 +02:00
|
|
|
LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif
|
2009-01-04 20:19:59 +01:00
|
|
|
LIB_DEPENDS+= xcb-render-util:${PORTSDIR}/x11/xcb-util
|
2002-11-24 02:06:12 +01:00
|
|
|
|
2007-12-11 21:28:23 +01:00
|
|
|
USE_XORG= x11 xi xext xinerama
|
2008-05-04 14:19:09 +02:00
|
|
|
USE_GNOME= gtk20
|
2003-01-01 22:04:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-05-04 14:19:09 +02:00
|
|
|
CONFIGURE_ARGS= --with-gtk2
|
2003-01-01 22:04:56 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
.if defined(WITH_LIBXINE)
|
2007-02-15 09:35:23 +01:00
|
|
|
LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine
|
2003-01-01 22:04:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-xine
|
2005-04-13 17:14:43 +02:00
|
|
|
.elif defined(WITH_MPLAYER)
|
2003-04-05 19:30:51 +02:00
|
|
|
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
|
|
|
|
CONFIGURE_ARGS+= --enable-mplayer
|
2003-01-01 22:04:56 +01:00
|
|
|
.endif
|
2005-08-28 11:19:42 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= WITH_NLS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_NLS=""
|
|
|
|
.endif
|
2002-11-24 02:06:12 +01:00
|
|
|
|
|
|
|
post-patch:
|
2003-01-01 22:04:56 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \
|
2007-10-25 01:37:25 +02:00
|
|
|
s|\\[$$][{]top_builddir[}]/intl/libintl.a|-lintl|g' \
|
|
|
|
${WRKSRC}/configure
|
2009-01-12 03:47:05 +01:00
|
|
|
@${REINPLACE_CMD} 's|#define GTK_DISABLE_DEPRECATED||g' \
|
|
|
|
${WRKSRC}/src/support/widgets/*.c
|
2002-11-24 02:06:12 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|