- Add missing -lgmodule-2.0

- Support base openssl
- Use option helpers
- Replace pre-configure with USE_AUTOTOOLS
- Replace patch with post-install command
- Replace USE_GCC=any with USES=compiler:nestedfct
This commit is contained in:
Tijl Coosemans 2014-09-04 14:55:44 +00:00
parent 6a14a41186
commit cf9419befc
2 changed files with 20 additions and 31 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= growl-for-linux
PORTVERSION= 0.6.9
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= deskutils
MAINTAINER= nivit@FreeBSD.org
@ -20,32 +20,29 @@ GH_COMMIT= ac7c8cd
GH_TAGNAME= ${GH_COMMIT}
GNU_CONFIGURE= yes
OPTIONS_DEFINE= LIBNOTIFY
OPTIONS_DEFAULT= LIBNOTIFY
LIBNOTIFY_DESC= Use notify-osd for libnotify display plugin
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBNOTIFY}
LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify
RUN_DEPENDS+= notify-osd>=0.9.29_3:${PORTSDIR}/deskutils/notify-osd
.endif
CONFIGURE_ARGS= OPENSSL_CFLAGS="-I${OPENSSLINC}" OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
USES= compiler:nestedfct libtool pkgconfig
USE_AUTOTOOLS= libtoolize aclocal autoconf automake
AUTOMAKE_ARGS= -a -c -f
USE_GITHUB= yes
USE_GNOME= gtk20
USE_OPENSSL= yes
USE_SQLITE= 3
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,^${PREFIX}/,,}
USE_AUTOTOOLS= autoconf:env automake:env libtoolize:env
USE_GITHUB= yes
USE_GCC= any
USE_GNOME= gtk20
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_SQLITE= 3
USES= libtool pkgconfig
OPTIONS_DEFINE= LIBNOTIFY
OPTIONS_DEFAULT=LIBNOTIFY
WITH_OPENSSL_PORT= yes
LIBNOTIFY_DESC= Use notify-osd for libnotify display plugin
LIBNOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
LIBNOTIFY_RUN_DEPENDS= notify-osd>=0.9.29_3:${PORTSDIR}/deskutils/notify-osd
pre-configure:
@(cd ${CONFIGURE_WRKSRC} ; ${SETENV} ${CONFIGURE_ENV} ${SH} autogen.sh)
post-patch:
@${REINPLACE_CMD} '/^gol_LDADD =/s/$$/ -lgmodule-2.0/' \
${WRKSRC}/Makefile.am
post-install:
${RM} ${STAGEDIR}${PREFIX}/lib/libgolplug.a
.include <bsd.port.mk>

View file

@ -1,8 +0,0 @@
--- ./plugins/Makefile.am.orig 2013-11-18 02:12:05.000000000 +0100
+++ ./plugins/Makefile.am 2013-11-18 02:12:12.000000000 +0100
@@ -1,4 +1,4 @@
-lib_LIBRARIES = libgolplug.a
+noinst_LIBRARIES = libgolplug.a
libgolplug_a_SOURCES = memfile.c memfile.h from_url.c from_url.h
libgolplug_a_CFLAGS = $(GTK2_CFLAGS) $(LIBCURL_CFLAGS) -fPIC -I$(srcdir)/..
#libgolplug_a_LIBADD = $(GTK2_LIBS) $(LIBCURL_LIBS)