mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
429ff4d861
USE_GNOME= imlib directives.
45 lines
977 B
Makefile
45 lines
977 B
Makefile
# New ports collection makefile for: gimageview
|
|
# Date Created: 5 Feb 2002
|
|
# Whom: TATEISHI Katsuyuki <katsu@iec.hiroshima-u.ac.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gimageview
|
|
PORTVERSION= 0.2.13
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= gtkmmviewer
|
|
|
|
MAINTAINER= katsu@iec.hiroshima-u.ac.jp
|
|
COMMENT= Yet another GTK+ based image viewer
|
|
|
|
USE_REINPLACE= yes
|
|
USE_X_PREFIX= yes
|
|
USE_GMAKE= yes
|
|
USE_GNOME= gdkpixbuf
|
|
WANT_GNOME= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${HAVE_GNOME:Mimlib}!=""
|
|
USE_GNOME+= imlib
|
|
PKGNAMESUFFIX= -imlib
|
|
WITH_IMLIB= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/DATADIRNAME=lib/DATADIRNAME=share/g' \
|
|
${WRKSRC}/configure
|
|
|
|
post-configure:
|
|
.if !defined(WITH_IMLIB)
|
|
@${FIND} ${WRKSRC} -name 'Makefile' | ${XARGS} ${REINPLACE_CMD} -Ee \
|
|
's/^(GDK_IMLIB_(CFLAGS|LIBS) =).*$$/$${1}/'
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|