freebsd-ports/graphics/albumshaper/Makefile
Baptiste Daroussin 9ff06b3cbf Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here:
- trim headers
- convert to new options framework
2013-04-29 22:27:05 +00:00

69 lines
1.5 KiB
Makefile

# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= albumshaper
PORTVERSION= 2.1
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Drag-n-drop hierarchal photo album creation
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
DEPRECATED= Depends on QT3; unmaintained
EXPIRATION_DATE= 2013-07-01
USE_BZIP2= yes
USES= iconv
USE_QT_VER= 3
USE_GNOME= libxml2 libxslt
WRKSRC= ${WRKDIR}/${DISTNAME}_src
CONFIGURE_ENV+= QTDIR=${QT_PREFIX} \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
MAKE_ENV+= QTDIR=${QT_PREFIX} \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
DESKTOP_ENTRIES= "AlbumShaper" \
"Photo album creation" \
"${DATADIR}/images/miscImages/as32.png" \
"AlbumShaper" \
"Qt;Graphics;" \
"false"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
MYDISTDOCS= AlbumShaper.doc install packageHowTo.txt readme.txt \
readme_precompiled.txt docs/bugs.txt docs/copying.txt
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
${WRKSRC}/AlbumShaper.pro
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/INSTALLS\ +=\ translations/d' \
${WRKSRC}/AlbumShaper.pro
.endif
pre-build:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
qmake AlbumShaper.pro )
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${MYDISTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>