aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xsane
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 14:36:23 +0800
committerreg <reg@FreeBSD.org>2000-10-05 14:36:23 +0800
commit97830337b8c0333a12d15a49ea1f9c9cdc3dfddf (patch)
treea059ae14b97a6e427c4c5a801e98bb245e73742e /graphics/xsane
parent38d35e3db9111f42b79313f05731c75e6e55d7e8 (diff)
downloadfreebsd-ports-gnome-97830337b8c0333a12d15a49ea1f9c9cdc3dfddf.tar.gz
freebsd-ports-gnome-97830337b8c0333a12d15a49ea1f9c9cdc3dfddf.tar.zst
freebsd-ports-gnome-97830337b8c0333a12d15a49ea1f9c9cdc3dfddf.zip
Implement USE_GTK, part 1.
Diffstat (limited to 'graphics/xsane')
-rw-r--r--graphics/xsane/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/graphics/xsane/Makefile b/graphics/xsane/Makefile
index a2000a58bad1..b143ade1b448 100644
--- a/graphics/xsane/Makefile
+++ b/graphics/xsane/Makefile
@@ -14,24 +14,28 @@ MASTER_SITES= http://www.wolfsburg.de/~rauch/sane/ \
MAINTAINER= domi@saargate.de
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
+LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext \
sane.1:${PORTSDIR}/graphics/sane \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
png.4:${PORTSDIR}/graphics/png
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-
USE_GMAKE= yes
USE_X_PREFIX= yes
+USE_GTK= yes
USE_AUTOCONF= yes
+CONFIGURE_ARGS= --enable-intl-patch
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- GTK_CONFIG="${GTK_CONFIG}" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --enable-intl-patch
MAN1= xsane.1
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/aclocal.m4
+
post-install:
@${CAT} ${PKGMESSAGE}