1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/graphics/libggi/Makefile
Tijl Coosemans c958a48581 Remove two libtool fixes from Mk/Uses/libtool.mk. They don't always work
when an older version of a package is installed.  This is the case when an
executable links with installed libraries and with uninstalled libraries
that link with other uninstalled libraries.  For each of the directly
linked libraries the executable will have an rpath (/usr/local/lib for the
installed libraries and a path under WRKDIR for each of the uninstalled
libraries), but not for the indirect libraries.  Both ld(1) and rtld(1)
search the rpath of the executable first before any rpath of libraries, so
the indirectly linked libraries will be found in /usr/local/lib if they are
installed instead of in WRKDIR.

With this commit executables will overlink with uninstalled indirect
libraries again so their location is added to the rpath of the executable.

This partially reverts r358784.

PR:		191611
Approved by:	portmgr (bapt)
2014-07-23 10:28:03 +00:00

82 lines
2.0 KiB
Makefile

# Created by: mwest@uct.ac.za
# $FreeBSD$
PORTNAME= libggi
PORTVERSION= 2.2.2
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= graphics devel
MASTER_SITES= SF/ggi/ggi-core/${PORTNAME}-${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= antoine@FreeBSD.org
COMMENT= Flexible drawing library
LICENSE= MIT
DEPRECATED= Unmaintained upstream
EXPIRATION_DATE= 2014-09-22
LIB_DEPENDS= libgii.so:${PORTSDIR}/devel/libgii
USES= libtool:keepla tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-directfb
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
LDFLAGS+= ${PTHREAD_LIBS}
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= AALIB SVGALIB X11
OPTIONS_DEFAULT=X11
.include <bsd.port.options.mk>
.if exists(/usr/include/dev/kgi/kgi.h)
CONFIGURE_ARGS+=--enable-kgi --with-extra-includes=/usr/include/dev
.endif
.if ${PORT_OPTIONS:MX11}
CONFIGURE_ARGS+=--enable-x --with-x
USE_XORG= x11 xxf86dga xxf86vm ice sm xau xext
PLIST_SUB+= WITH_X=""
.else
CONFIGURE_ARGS+=--disable-x --without-x
PLIST_SUB+= WITH_X="@comment "
.endif
.if exists(/usr/include/vgl.h) && (${ARCH} == "i386" || ${ARCH} == "amd64")
CONFIGURE_ARGS+=--enable-vgl
PLIST_SUB+= WITH_VGL=""
.else
CONFIGURE_ARGS+=--disable-vgl
PLIST_SUB+= WITH_VGL="@comment "
.endif
.if ${PORT_OPTIONS:MAALIB}
CONFIGURE_ARGS+=--enable-aa
LIB_DEPENDS+= libaa.so:${PORTSDIR}/graphics/aalib
PLIST_SUB+= WITH_AALIB=""
.else
CONFIGURE_ARGS+=--disable-aa
PLIST_SUB+= WITH_AALIB="@comment "
.endif
.if ${PORT_OPTIONS:MSVGALIB}
CONFIGURE_ARGS+=--enable-vgagl --enable-svga
LIB_DEPENDS+= libvga.so:${PORTSDIR}/graphics/svgalib
PLIST_SUB+= WITH_SVGALIB=""
.else
CONFIGURE_ARGS+=--disable-vgagl --disable-svga
PLIST_SUB+= WITH_SVGALIB="@comment "
.endif
post-install:
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/default/fbdev/.keep
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/default/kgi/.keep
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/helper/.keep
${MV} ${STAGEDIR}${PREFIX}/etc/ggi/libggi.conf ${STAGEDIR}${PREFIX}/etc/ggi/libggi.conf.sample
.include <bsd.port.mk>