openbsd-ports/x11/libdesktop-agnostic/Makefile
ajacoutot 4549285c02 Do not hardcode python version in WANTLIB, use MODPY_WANTLIB.
Remove intl+iconv from WANTLIB, they are already added by the gettect
MODULE.
2011-09-23 08:09:18 +00:00

67 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2011/09/23 08:09:18 ajacoutot Exp $
COMMENT= desktop-agnostic library, apis and tools
V= 0.3.92
DISTNAME= libdesktop-agnostic-$V
REVISION= 1
CATEGORIES= x11
HOMEPAGE= https://launchpad.net/libdesktop-agnostic
# GPLv2/LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/0.4/$V/+download/
MODULES= devel/waf devel/gettext
SO_VERSION = 0.0
.for _lib in desktop-agnostic desktop-agnostic-ui desktop-agnostic-fdo desktop-agnostic-cfg desktop-agnostic-vfs
SHARED_LIBS += ${_lib} ${SO_VERSION}
.endfor
BUILD_DEPENDS= lang/vala \
devel/py-gobject
RUN_DEPENDS= devel/py-gobject
LIB_DEPENDS = x11/gtk+2 \
devel/gconf2 \
${MODPY_LIB_DEPENDS}
WANTLIB = GL ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0
WANTLIB += c cairo drm expat ffi fontconfig freetype gconf-2 gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs ${MODPY_WANTLIB}
WANTLIB += util xcb xcb-render xcb-shm z
CONFIGURE_ARGS = --config-backends=keyfile,gconf \
--vfs-backends=gio \
--desktop-entry-backends=glib
NO_REGRESS = Yes
CONFIGURE_ENV = CPPFLAGS=-I${LOCALBASE}/include
MAKE_ENV += SO_VERSION=${SO_VERSION}
post-configure:
#XXX big hammer to avoir -Wl,-h,libfoo.so.0
perl -pi -e "s/SONAME_ST.*/SONAME_ST=''/" ${WRKSRC}/build/c4che/default.cache.py
post-install:
# remove so symlinks
rm -f ${PREFIX}/lib/libdesktop-agnostic*.so{,??}
# move headers to the names the users of that lib uses
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-cfg,config}.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}vfs.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}ui.h
mv ${PREFIX}/include/libdesktop-agnostic-1.0/libdesktop-agnostic/{desktop-agnostic-,}fdo.h
.include <bsd.port.mk>