Fix build with linker that does not copy the dt_need from libraries it links

with like recent binutils.
While here:
- New options framework
- USE_GMAKE -> USES=gmake
This commit is contained in:
Baptiste Daroussin 2013-07-26 06:55:13 +00:00
parent a1ab42767f
commit ad67db9b50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323697

View file

@ -10,14 +10,16 @@ MASTER_SITES= SF/gould/${PORTNAME}/release%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK+ based screen capture
USES= pkgconfig
OPTIONS_DEFINE= DOCS
USES= pkgconfig gmake
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtool
AUTOMAKE_ARGS= --add-missing
USE_GNOME= gtk20 libwnck libxml2
USE_XORG= x11 xmu
USE_GMAKE= yes
CFLAGS+= -fPIC -I${LOCALBASE}/include/libxml2
LDFLAGS+= -lgmodule-2.0
PORTDOCS= AUTHORS COPYING INSTALL README TODO
@ -28,13 +30,15 @@ DESKTOP_ENTRIES= "gsnapshot" \
"Graphics;GTK;" \
"false"
.include <bsd.port.options.mk>
pre-configure:
@${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}
@${LN} -sf ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
@${LN} -sf ${AUTOMAKE_DIR}/missing ${WRKSRC}
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}