aboutsummaryrefslogtreecommitdiff
path: root/graphics/nomacs
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2013-03-02 19:30:29 +0000
committerBeech Rintoul <beech@FreeBSD.org>2013-03-02 19:30:29 +0000
commit61edf9d7fa5e819b38e108f66ef82f1b206fb330 (patch)
tree5d4f4644970330d3f83a36e6c502080a863d2a42 /graphics/nomacs
parenta10d79d1487be7bfc5268fe083d0540e15f5255f (diff)
downloadports-61edf9d7fa5e819b38e108f66ef82f1b206fb330.tar.gz
ports-61edf9d7fa5e819b38e108f66ef82f1b206fb330.zip
Notes
Diffstat (limited to 'graphics/nomacs')
-rw-r--r--graphics/nomacs/Makefile17
-rw-r--r--graphics/nomacs/distinfo4
-rw-r--r--graphics/nomacs/pkg-plist20
3 files changed, 27 insertions, 14 deletions
diff --git a/graphics/nomacs/Makefile b/graphics/nomacs/Makefile
index 14327d58206d..f54531eaaaf2 100644
--- a/graphics/nomacs/Makefile
+++ b/graphics/nomacs/Makefile
@@ -1,10 +1,10 @@
# $FreeBSD$
PORTNAME= nomacs
-PORTVERSION= 0.4.0
+PORTVERSION= 1.0.0
CATEGORIES= graphics
MASTER_SITES= SF/nomacs/nomacs-${PORTVERSION}/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-source
+DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= bsd@tuxproject.de
COMMENT= Small, fast and free image viewer
@@ -14,13 +14,20 @@ LICENSE= GPLv3
LIB_DEPENDS= exiv2:${PORTSDIR}/graphics/exiv2 \
sysinfo:${PORTSDIR}/devel/libsysinfo
-USE_ZIP= yes
+USE_BZIP2= yes
USE_CMAKE= yes
USE_QT4= gui network linguist_build moc_build \
qmake_build rcc_build uic_build
LDFLAGS+= -lsysinfo -lkvm
-# no RAW support for now.
+WRKTOP= ${WRKDIR}
+WRKSUBDIR= ${PORTNAME}-${PORTVERSION}
+WRKSRC= ${WRKTOP}/${WRKSUBDIR}
CMAKE_ARGS+= -DENABLE_RAW=0
-NO_WRKSUBDIR= yes
+MAN1= nomacs.1
+
+post-extract:
+ @cd ${WRKSRC}/ &&\
+ ${REINPLACE_CMD} -e 's|share/man/man1|man/man1|' \
+ CMakeLists.txt
.include <bsd.port.mk>
diff --git a/graphics/nomacs/distinfo b/graphics/nomacs/distinfo
index f829a00babcf..27002342ef90 100644
--- a/graphics/nomacs/distinfo
+++ b/graphics/nomacs/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nomacs-0.4.0-source.zip) = 3432d55d4de23c365912f0c796deb2e25184efdbd8a81304f15914e3fe4da2c7
-SIZE (nomacs-0.4.0-source.zip) = 1112306
+SHA256 (nomacs-1.0.0.tar.bz2) = bf2a0a9ecb35551dc8ed25c0db95c1183b3771a2ce9e2a41d7e1d230bac2c5f2
+SIZE (nomacs-1.0.0.tar.bz2) = 803404
diff --git a/graphics/nomacs/pkg-plist b/graphics/nomacs/pkg-plist
index 4b59d29eaf15..ccd8cda901bd 100644
--- a/graphics/nomacs/pkg-plist
+++ b/graphics/nomacs/pkg-plist
@@ -1,11 +1,17 @@
bin/nomacs
share/applications/nomacs.desktop
-share/nomacs/translations/nomacs_als.qm
-share/nomacs/translations/nomacs_de.qm
-share/nomacs/translations/nomacs_en.qm
-share/nomacs/translations/nomacs_ru.qm
-share/nomacs/translations/nomacs_zh.qm
+%%DATADIR%%/translations/nomacs_als.qm
+%%DATADIR%%/translations/nomacs_az.qm
+%%DATADIR%%/translations/nomacs_de.qm
+%%DATADIR%%/translations/nomacs_en.qm
+%%DATADIR%%/translations/nomacs_es.qm
+%%DATADIR%%/translations/nomacs_pl.qm
+%%DATADIR%%/translations/nomacs_ru.qm
+%%DATADIR%%/translations/nomacs_sk.qm
+%%DATADIR%%/translations/nomacs_zh.qm
share/pixmaps/nomacs.png
-@dirrm share/nomacs/translations
-@dirrm share/nomacs
+@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