openbsd-ports/productivity/vym/Makefile

59 lines
1.5 KiB
Makefile
Raw Normal View History

2012-08-29 03:37:05 -04:00
# $OpenBSD: Makefile,v 1.16 2012/08/29 07:37:05 jasper Exp $
COMMENT= generate and manipulate maps of your thoughts
2012-08-29 03:37:05 -04:00
DISTNAME= vym-2.2.2
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
2012-06-22 02:48:58 -04:00
WANTLIB += ICE QtDBus QtGui QtNetwork QtSvg QtXml SM X11 Xext
WANTLIB += Xi Xinerama Xrender c fontconfig freetype m pthread
2011-11-03 18:21:21 -04:00
WANTLIB += stdc++
MODULES= devel/gettext \
x11/qt4
RUN_DEPENDS= archivers/zip \
archivers/unzip \
textproc/libxslt
PORTHOME= ${WRKDIR}
NO_REGRESS= Yes
2012-06-22 02:48:58 -04:00
SHARE_DIRS= flags flags/freemind icons scripts styles
pre-configure:
2010-03-30 15:21:28 -04:00
${SUBST_CMD} ${WRKSRC}/mainwindow.cpp ${WRKSRC}/main.cpp
do-configure:
@echo "QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}" \
>> ${WRKSRC}/vym.pro
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
2012-06-22 02:48:58 -04:00
${LOCALBASE}/bin/qmake4 DOCDIR="${PREFIX}/share/doc/vym" vym.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vym ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vym/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vym/
2012-06-22 02:48:58 -04:00
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${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
2012-06-22 02:48:58 -04:00
${INSTALL_DATA} ${WRKSRC}/doc/vym.1.gz ${PREFIX}/man/man1
gunzip ${PREFIX}/man/man1/vym.1.gz
.include <bsd.port.mk>