diff options
author | makc <makc@FreeBSD.org> | 2013-02-21 01:54:32 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-02-21 01:54:32 +0800 |
commit | c3a88e456fe491cc57b71fe6aee5d8e735cb5ffe (patch) | |
tree | 0402f5e268669709206189a9eca42f86eab524f1 /misc/saaghar/Makefile | |
parent | 27562244b314a7a71d2332edf4c49f786fd5d7ab (diff) | |
download | freebsd-ports-gnome-c3a88e456fe491cc57b71fe6aee5d8e735cb5ffe.tar.gz freebsd-ports-gnome-c3a88e456fe491cc57b71fe6aee5d8e735cb5ffe.tar.zst freebsd-ports-gnome-c3a88e456fe491cc57b71fe6aee5d8e735cb5ffe.zip |
Add new port misc/saaghar:
Cross-platform Persian poetry software.
WWW: http://www.pozh.org/saaghar
PR: ports/176209
Submitted by: Javad Kouhi <javad.kouhi@gmail.com>
Diffstat (limited to 'misc/saaghar/Makefile')
-rw-r--r-- | misc/saaghar/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/misc/saaghar/Makefile b/misc/saaghar/Makefile new file mode 100644 index 000000000000..2fbc4a60bd52 --- /dev/null +++ b/misc/saaghar/Makefile @@ -0,0 +1,50 @@ +# $FreeBSD$ + +PORTNAME= saaghar +PORTVERSION= 1.0.94 +CATEGORIES= misc +MASTER_SITES= SF/saaghar/Source%20Code/:saaghar \ + SF/ganjoor/s3db:ganjoor +DISTFILES= Saaghar-${PORTVERSION}.tar.gz:saaghar \ + ganjoor-s3db-910612.zip:ganjoor +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= javad.kouhi@gmail.com +COMMENT= Persian poetry software + +LICENSE= GPLv3 + +EXTRACT_DEPENDS= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip + +USE_QT4= gui network sql xml sql-sqlite3_run \ + moc_build qmake_build rcc_build uic_build +HAS_CONFIGURE= yes +QMAKEFLAGS+= PREFIX=${PREFIX} +WRKSRC= ${WRKDIR}/Saaghar + +.include <bsd.port.options.mk> + +.if !${PORT_OPTIONS:MDEBUG} +QMAKEFLAGS+= -config release +.endif + +post-extract: + ${UNZIP_CMD} -d ${WRKDIR}/ganjoor \ + ${DISTDIR}/${DIST_SUBDIR}/ganjoor-s3db-910612.zip + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/saaghar/|${PREFIX}/share/saaghar|g' \ + ${WRKSRC}/mainwindow.cpp + @${REINPLACE_CMD} -e '1 s|^.*/|/|g' \ + ${WRKSRC}/QGanjoorDbBrowser.cpp \ + ${WRKSRC}/QGanjoorDbStuff.h \ + ${WRKSRC}/mainwindow.cpp + +do-configure: + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ + ${QMAKE} ${QMAKEFLAGS} saaghar.pro + +post-install: + cd ${WRKDIR}/ganjoor && ${COPYTREE_SHARE} . ${DATADIR} + +.include <bsd.port.mk> |