diff options
author | ak <ak@FreeBSD.org> | 2013-06-30 22:49:55 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2013-06-30 22:49:55 +0800 |
commit | a1c56d0ca646002f7301730424e26785e7a5e6e9 (patch) | |
tree | 489a51d147cedc04a17d7bad7029c1a25d0553db | |
parent | 9df3b4ea416afaf7f04ea65318856aac5fc43c10 (diff) | |
download | freebsd-ports-gnome-a1c56d0ca646002f7301730424e26785e7a5e6e9.tar.gz freebsd-ports-gnome-a1c56d0ca646002f7301730424e26785e7a5e6e9.tar.zst freebsd-ports-gnome-a1c56d0ca646002f7301730424e26785e7a5e6e9.zip |
- Update to 1.2.0
- Add RAW option
- Convert to USES=desktop-file-utils
PR: ports/177733 (based on)
Submitted by: Jens K. Loewe <bsd@tuxproject.de> (maintainer)
-rw-r--r-- | graphics/nomacs/Makefile | 26 | ||||
-rw-r--r-- | graphics/nomacs/distinfo | 4 | ||||
-rw-r--r-- | graphics/nomacs/pkg-plist | 7 |
3 files changed, 25 insertions, 12 deletions
diff --git a/graphics/nomacs/Makefile b/graphics/nomacs/Makefile index 29c037460168..62a28280eff4 100644 --- a/graphics/nomacs/Makefile +++ b/graphics/nomacs/Makefile @@ -1,10 +1,10 @@ # $FreeBSD$ PORTNAME= nomacs -PORTVERSION= 1.0.0 +PORTVERSION= 1.2.0 CATEGORIES= graphics MASTER_SITES= SF/nomacs/nomacs-${PORTVERSION}/ -DISTNAME= ${PORTNAME}-${PORTVERSION} +DISTNAME= ${PORTNAME}-${PORTVERSION}-source MAINTAINER= bsd@tuxproject.de COMMENT= Small, fast and free image viewer @@ -15,19 +15,29 @@ LIB_DEPENDS= exiv2:${PORTSDIR}/graphics/exiv2 \ sysinfo:${PORTSDIR}/devel/libsysinfo USE_BZIP2= yes -USES= cmake +USES= cmake desktop-file-utils USE_QT4= gui network linguist_build moc_build \ qmake_build rcc_build uic_build LDFLAGS+= -lsysinfo -lkvm WRKTOP= ${WRKDIR} -WRKSUBDIR= ${PORTNAME}-${PORTVERSION} +WRKSUBDIR= ${DISTNAME:S,-source,,} WRKSRC= ${WRKTOP}/${WRKSUBDIR} -CMAKE_ARGS+= -DENABLE_RAW=0 MAN1= nomacs.1 +OPTIONS_DEFINE= RAW +OPTIONS_DEFAULT= RAW +RAW_DESC= RAW images support + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MRAW} +LIB_DEPENDS+= raw:${PORTSDIR}/graphics/libraw \ + opencv_legacy:${PORTSDIR}/graphics/opencv +.else +CMAKE_ARGS+= -DENABLE_RAW=0 +.endif + post-extract: - @cd ${WRKSRC}/ &&\ - ${REINPLACE_CMD} -e 's|share/man/man1|man/man1|' \ - CMakeLists.txt + @${REINPLACE_CMD} -e 's|share/man/man1|man/man1|' ${WRKSRC}/CMakeLists.txt .include <bsd.port.mk> diff --git a/graphics/nomacs/distinfo b/graphics/nomacs/distinfo index 27002342ef90..4a6684987483 100644 --- a/graphics/nomacs/distinfo +++ b/graphics/nomacs/distinfo @@ -1,2 +1,2 @@ -SHA256 (nomacs-1.0.0.tar.bz2) = bf2a0a9ecb35551dc8ed25c0db95c1183b3771a2ce9e2a41d7e1d230bac2c5f2 -SIZE (nomacs-1.0.0.tar.bz2) = 803404 +SHA256 (nomacs-1.2.0-source.tar.bz2) = 0c60e5d17a7f3d17f33344b59440dad2bac0358fd1fae85b48574f2c61674259 +SIZE (nomacs-1.2.0-source.tar.bz2) = 859335 diff --git a/graphics/nomacs/pkg-plist b/graphics/nomacs/pkg-plist index ccd8cda901bd..5fb66f3fe703 100644 --- a/graphics/nomacs/pkg-plist +++ b/graphics/nomacs/pkg-plist @@ -2,16 +2,19 @@ bin/nomacs share/applications/nomacs.desktop %%DATADIR%%/translations/nomacs_als.qm %%DATADIR%%/translations/nomacs_az.qm +%%DATADIR%%/translations/nomacs_cs.qm %%DATADIR%%/translations/nomacs_de.qm %%DATADIR%%/translations/nomacs_en.qm %%DATADIR%%/translations/nomacs_es.qm +%%DATADIR%%/translations/nomacs_it.qm %%DATADIR%%/translations/nomacs_pl.qm +%%DATADIR%%/translations/nomacs_pt.qm %%DATADIR%%/translations/nomacs_ru.qm +%%DATADIR%%/translations/nomacs_sl.qm %%DATADIR%%/translations/nomacs_sk.qm +%%DATADIR%%/translations/nomacs_sr.qm %%DATADIR%%/translations/nomacs_zh.qm share/pixmaps/nomacs.png @dirrm %%DATADIR%%/translations @dirrm %%DATADIR%% @dirrmtry share/applications -@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true |