0d071cef57
Spotted by aja@
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2016/03/28 09:27:10 zhuk Exp $
|
|
|
|
COMMENT = convert images to cross stitch patterns
|
|
|
|
GH_ACCOUNT = kleintom
|
|
GH_PROJECT = cstitch
|
|
GH_TAGNAME = 0.9.7
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME}-icons{icons}.zip:0
|
|
|
|
MASTER_SITES0 = http://sourceforge.net/projects/cstitch/files/Cstitch/Icons/
|
|
|
|
MODULES = devel/qmake lang/python x11/qt5
|
|
MODPY_RUNDEP = No
|
|
|
|
CATEGORIES = graphics
|
|
|
|
HOMEPAGE = http://cstitch.sourceforge.net/
|
|
|
|
MAINTAINER = Adam Wolk <awolk@openbsd.org>
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += GL Qt5Core Qt5Gui Qt5PrintSupport Qt5Widgets Qt5Xml
|
|
WANTLIB += c m pthread
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils x11/gtk+3,-guic
|
|
|
|
WRKDIST = ${WRKDIR}/Cstitch-${GH_TAGNAME}
|
|
EXTRACT_CASES += *icons.zip) \
|
|
${UNZIP} -qo ${FULLDISTDIR}/$$archive -d \
|
|
${WRKDIST}/icons/;;
|
|
|
|
pre-configure:
|
|
cd ${WRKDIST} && \
|
|
${MODPY_BIN} doc/createDocs.py && \
|
|
${MODQT_QMAKE} -project && \
|
|
${MODPY_BIN} progen.py
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/Cstitch-${GH_TAGNAME} \
|
|
${PREFIX}/bin/cstitch
|
|
${INSTALL_DATA_DIR} \
|
|
${PREFIX}/share/icons/hicolor/scalable/apps
|
|
${INSTALL_DATA} ${WRKSRC}/icons/cstitch.svg \
|
|
${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
${INSTALL_DATA} ${WRKSRC}/cstitch.desktop \
|
|
${PREFIX}/share/applications/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/cstitch/locale/
|
|
${INSTALL_DATA} ${WRKSRC}/translations/*.qm \
|
|
${PREFIX}/share/cstitch/locale/
|
|
|
|
.include <bsd.port.mk>
|