openbsd-ports/productivity/vym/Makefile
jasper b655be5e62 - add missing dependency (archivers/zip)
"ok of course!" ajacoutot@
2008-01-21 22:10:21 +00:00

59 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.3 2008/01/21 22:10:21 jasper Exp $
COMMENT= generate and manipulate maps of your thoughts
DISTNAME= vym-1.10.0
PKGNAME= ${DISTNAME}p0
CATEGORIES= productivity x11
HOMEPAGE= http://www.insilmaril.de/vym/
# modified GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vym/}
EXTRACT_SUFX= .tar.bz2
WANTLIB= ICE SM Qt3Support QtGui QtNetwork QtSql QtXml X11 Xcursor Xext \
Xfixes Xi Xinerama Xrandr Xrender c crypto fontconfig freetype \
glib-2.0 gthread-2.0 m png pthread ssl stdc++ z
MODULES= devel/gettext \
x11/qt4
RUN_DEPENDS= ::archivers/zip
USE_X11= Yes
PORTHOME= ${WRKDIR}
NO_REGRESS= Yes
SHARE_DIRS= flags icons scripts styles
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/mainwindow.cpp \
${WRKSRC}/exportxhtmldialog.cpp
do-configure:
@echo "QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}" \
>> ${WRKSRC}/vym.pro
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${LOCALBASE}/bin/qmake4 vym.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vym ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vym/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vym/
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/vym/
${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/examples/vym/
.for i in ${SHARE_DIRS}
${INSTALL_DATA_DIR} ${PREFIX}/share/vym/${i}
find ${WRKSRC}/${i}/ -type f -exec \
${INSTALL_DATA} {} ${PREFIX}/share/vym/${i} \;
.endfor
.include <bsd.port.mk>