aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-11-07 01:20:16 +0800
committeralepulver <alepulver@FreeBSD.org>2006-11-07 01:20:16 +0800
commit91e773228e8ace0f0dce05f41aa46fac6bbdab0a (patch)
tree6b904a7386ce2fca9d1ec92bba47a42820011593
parent1db667955e40da105593c2dfbe806509a68c0b57 (diff)
downloadfreebsd-ports-gnome-91e773228e8ace0f0dce05f41aa46fac6bbdab0a.tar.gz
freebsd-ports-gnome-91e773228e8ace0f0dce05f41aa46fac6bbdab0a.tar.zst
freebsd-ports-gnome-91e773228e8ace0f0dce05f41aa46fac6bbdab0a.zip
- Fix pkg-plist.
- Use INSTALLS_ICONS to pet portlint. PR: ports/104837 Submitted by: Thomas Abthorpe <thomas@goodking.ca>
-rw-r--r--deskutils/knowit/Makefile3
-rw-r--r--deskutils/knowit/pkg-plist20
2 files changed, 10 insertions, 13 deletions
diff --git a/deskutils/knowit/Makefile b/deskutils/knowit/Makefile
index 0df9814231dd..89345b6b78f6 100644
--- a/deskutils/knowit/Makefile
+++ b/deskutils/knowit/Makefile
@@ -21,12 +21,15 @@ USE_GETTEXT= yes
USE_KDELIBS_VER= 3
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
+INSTALLS_ICONS= yes
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
AUTOMAKE="${TRUE}"
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
QTCFGLIBS+= ${PTHREAD_LIBS}
+DOCSDIR= ${PREFIX}/share/doc/HTML
+
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g ; \
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
diff --git a/deskutils/knowit/pkg-plist b/deskutils/knowit/pkg-plist
index 38a0e8b2f322..9da10a0fd96a 100644
--- a/deskutils/knowit/pkg-plist
+++ b/deskutils/knowit/pkg-plist
@@ -2,10 +2,10 @@ bin/knowit
share/applnk/Applications/knowit.desktop
share/apps/knowit/knowitui.rc
share/apps/knowit/tips
-share/doc/HTML/en/knowit/common
-share/doc/HTML/en/knowit/index.cache.bz2
-share/doc/HTML/en/knowit/index.docbook
-share/doc/HTML/en/knowit/screenshot.png
+%%DOCSDIR%%/en/knowit/common
+%%DOCSDIR%%/en/knowit/index.cache.bz2
+%%DOCSDIR%%/en/knowit/index.docbook
+%%DOCSDIR%%/en/knowit/screenshot.png
share/icons/hicolor/16x16/apps/knowit.png
share/icons/hicolor/32x32/apps/knowit.png
share/locale/de/LC_MESSAGES/knowit.mo
@@ -18,15 +18,9 @@ share/locale/sk/LC_MESSAGES/knowit.mo
share/locale/zh_CN.GB2312/LC_MESSAGES/knowit.mo
@dirrmtry share/mimelnk/application
@dirrmtry share/mimelnk
-@dirrmtry share/icons/hicolor/32x32/apps
-@dirrmtry share/icons/hicolor/32x32
-@dirrmtry share/icons/hicolor/16x16/apps
-@dirrmtry share/icons/hicolor/16x16
-@dirrmtry share/icons/hicolor
-@dirrmtry share/icons
-@dirrm share/doc/HTML/en/knowit
-@dirrmtry share/doc/HTML/en
-@dirrmtry share/doc/HTML
+@dirrm %%DOCSDIR%%/en/knowit
+@dirrmtry %%DOCSDIR%%/en
+@dirrmtry %%DOCSDIR%%
@dirrm share/apps/knowit
@dirrmtry share/applnk/Applications
@dirrmtry share/applnk