diff options
author | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
commit | f8357b5cbaa160ccdf9943cac099f5e092c591da (patch) | |
tree | d0c8617b772b8f0a175d436d938b8d844590b41f /sysutils/libgksu | |
parent | 89a7d6ecbdde724b92ca6650493f56cf68855f35 (diff) | |
download | freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.gz freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.zst freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.zip |
- Fix missing library problems when the linker enforces explicit linking
PR: 192062
Exp-run by: antoine
Approved by: portmgr (antoine)
Diffstat (limited to 'sysutils/libgksu')
-rw-r--r-- | sysutils/libgksu/Makefile | 15 | ||||
-rw-r--r-- | sysutils/libgksu/files/patch-libgksu_Makefile.in | 20 |
2 files changed, 13 insertions, 22 deletions
diff --git a/sysutils/libgksu/Makefile b/sysutils/libgksu/Makefile index 772afa198aaa..ee7cd8e655c9 100644 --- a/sysutils/libgksu/Makefile +++ b/sysutils/libgksu/Makefile @@ -17,12 +17,23 @@ LIB_DEPENDS= libgtop-2.0.so:${PORTSDIR}/devel/libgtop \ RUN_DEPENDS= xauth:${PORTSDIR}/x11/xauth \ sudo:${PORTSDIR}/security/sudo -USES= desktop-file-utils gmake libtool pkgconfig +USES= gmake libtool pathfix pkgconfig USE_GNOME= glib20 gconf2 USE_LDCONFIG= yes +USE_XORG= x11 CONFIGURE_ARGS= --enable-gtk-doc=no GNU_CONFIGURE= yes GCONF_SCHEMAS= gksu.schemas -LIBS+= `pkg-config --libs gtk+-x11-2.0` +INSTALL_TARGET= install-strip + +post-patch: + @${REINPLACE_CMD} '/AM_CFLAGS/s/-g -O2//' \ + ${WRKSRC}/gksu-properties/Makefile.in \ + ${WRKSRC}/libgksu/Makefile.in \ + ${WRKSRC}/libgksuui/Makefile.in + @${REINPLACE_CMD} '/^test_gksu_LDFLAGS =/s/glib-2.0/gtk+-2.0/' \ + ${WRKSRC}/libgksu/Makefile.in + @${REINPLACE_CMD} '/^libgksuui1_0_la_LIBADD =/s/$$/ -lX11/' \ + ${WRKSRC}/libgksuui/Makefile.in .include <bsd.port.mk> diff --git a/sysutils/libgksu/files/patch-libgksu_Makefile.in b/sysutils/libgksu/files/patch-libgksu_Makefile.in deleted file mode 100644 index 6d0a436a03f6..000000000000 --- a/sysutils/libgksu/files/patch-libgksu_Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- libgksu/Makefile.in.o 2011-04-11 13:45:10.938246716 -0400 -+++ libgksu/Makefile.in 2011-04-11 13:46:36.384246142 -0400 -@@ -266,7 +266,7 @@ - top_build_prefix = @top_build_prefix@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ --AM_CFLAGS = -g -O2 -Wall -+AM_CFLAGS = $(CFLAGS) - INCLUDES = ${LIBGKSU_CFLAGS} - AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\" - lib_LTLIBRARIES = libgksu2.la -@@ -280,7 +280,7 @@ - ${LIBGKSU_LIBS} $(am__append_1) - noinst_HEADERS = defines.h - include_HEADERS = gksu.h libgksu.h --pkgconfigdir = ${libdir}/pkgconfig -+pkgconfigdir = ${prefix}/libdata/pkgconfig - pkgconfig_DATA = libgksu2.pc - gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0` - gksu_run_helper_SOURCES = gksu-run-helper.c |