openbsd-ports/devel/qt4-eventsview/Makefile

49 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2007/09/16 02:53:12 merdely Exp $
COMMENT= event viewer for qt4
CATEGORIES= devel x11
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
SHARED_LIBS= eventsview 0.0
.for l v in $(SHARED_LIBS)
MAKE_FLAGS+=LIB$l_VERSION=$v
.endfor
DIST_SUBDIR= ${PKGNAME}
DISTNAME= 57337-eventsview
PKGNAME= qt4-eventsview-0.1
MASTER_SITES= http://qt-apps.org/CONTENT/content-files/
WRKDIST= ${WRKDIR}/eventsview
MODULES= x11/qt4
do-configure:
cd ${WRKDIST} && env -i ${CONFIGURE_ENV} qmake4
cd ${WRKDIST}/test && ln -sf ../lib/eventsview.h
SAMPLE= ${PREFIX}/share/examples/eventsview
do-install:
${INSTALL_DATA} ${WRKBUILD}/lib/libeventsview.so.${LIBeventsview_VERSION} ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/include/X11/qt4
${INSTALL_DATA} ${WRKBUILD}/lib/eventsview.h ${PREFIX}/include/X11/qt4
${INSTALL_DATA_DIR} ${SAMPLE}
${INSTALL_DATA} ${WRKBUILD}/test/{Makefile,main.cpp} ${SAMPLE}
${INSTALL_PROGRAM} ${WRKBUILD}/test/test ${SAMPLE}
LIB_DEPENDS= glib-2.0,gthread-2.0::devel/glib2
WANTLIB += ICE SM X11 Xcursor Xext Xfixes Xi Xinerama Xrandr Xrender
WANTLIB += c fontconfig freetype iconv intl m png pthread stdc++
WANTLIB += z
WANTLIB += QtGui
SUBST_VARS= SAMPLE
.include <bsd.port.mk>