aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-08-31 21:25:31 +0800
committertijl <tijl@FreeBSD.org>2014-08-31 21:25:31 +0800
commit980d430b2ba88bb5062c54e5185c60504e68fcfd (patch)
treedf538fa4bc0ebb23551bb92705e6a7a695ab308a
parent058d58125f7df289536c117f2069ba521f7ab07f (diff)
downloadfreebsd-ports-gnome-980d430b2ba88bb5062c54e5185c60504e68fcfd.tar.gz
freebsd-ports-gnome-980d430b2ba88bb5062c54e5185c60504e68fcfd.tar.zst
freebsd-ports-gnome-980d430b2ba88bb5062c54e5185c60504e68fcfd.zip
- Convert to USES=libtool and add INSTALL_TARGET=install-strip
- Run libtoolize and other autotools because the port ships with libtool 1.2e which only supports FreeBSD versions up to 3.x
-rw-r--r--devel/libstroke/Makefile15
-rw-r--r--devel/libstroke/files/patch-configure.in21
-rw-r--r--devel/libstroke/pkg-plist2
3 files changed, 29 insertions, 9 deletions
diff --git a/devel/libstroke/Makefile b/devel/libstroke/Makefile
index 15262399749d..72389fe6eb62 100644
--- a/devel/libstroke/Makefile
+++ b/devel/libstroke/Makefile
@@ -3,24 +3,23 @@
PORTNAME= libstroke
PORTVERSION= 0.5.1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= devel
MASTER_SITES= http://etla.net/libstroke/
MAINTAINER= ports@FreeBSD.org
COMMENT= Stroke translation library
-USES= gmake
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USES= gmake libtool
+USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
+AUTOMAKE_ARGS= -a -c -f
USE_CSTD= gnu89
USE_XORG= x11
-USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
-CONFIGURE_ARGS= --disable-gtktest
-
post-patch:
- @${REINPLACE_CMD} -e \
- 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
- ${WRKSRC}/configure
+ @${REINPLACE_CMD} '/^[[:space:]]*#/d' ${WRKSRC}/libstroke/Makefile.am
.include <bsd.port.mk>
diff --git a/devel/libstroke/files/patch-configure.in b/devel/libstroke/files/patch-configure.in
new file mode 100644
index 000000000000..756028c23e88
--- /dev/null
+++ b/devel/libstroke/files/patch-configure.in
@@ -0,0 +1,21 @@
+--- configure.in.orig
++++ configure.in
+@@ -81,16 +81,8 @@
+ [ --with-mouse-footprints Draw mouse footprints in X],
+ [AC_DEFINE(STROKE_MOUSE_FOOTPRINTS)])
+
+-dnl check for GTK
+-dnl we won't build libgstroke if it's not found
+-AC_MSG_CHECKING(gtk+ library)
+-AM_PATH_GTK(1.2.7, HAVE_LIBGTK=yes
+- AC_DEFINE(HAVE_LIBGTK, 1, [Define if libgtk is available]),
+- AC_MSG_WARN(
+-***** NOTE: The GNOME stroke support won't be built
+-)
+- HAVE_LIBGTK=no,
+-)
++AC_SUBST(GTK_CFLAGS)
++AC_SUBST(GTK_LIBS)
+ AM_CONDITIONAL(HAVE_LIBGTK, test "x$HAVE_LIBGTK" = "xyes")
+
+
diff --git a/devel/libstroke/pkg-plist b/devel/libstroke/pkg-plist
index 7ab61a279c68..c6f84234bb6a 100644
--- a/devel/libstroke/pkg-plist
+++ b/devel/libstroke/pkg-plist
@@ -1,7 +1,7 @@
include/stroke.h
lib/libstroke.a
-lib/libstroke.la
lib/libstroke.so
lib/libstroke.so.0
+lib/libstroke.so.0.0.5
share/aclocal/libgstroke.m4
share/aclocal/libstroke.m4