Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-18 13:14:02 +00:00
parent 168dfd58b7
commit cdeb3e55b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358271
2 changed files with 30 additions and 1 deletions

View file

@ -18,5 +18,4 @@ GNU_CONFIGURE= yes
LDFLAGS+= -lm
NO_STAGE= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,30 @@
--- Makefile.in.orig 2014-06-18 21:06:00.354774154 +0800
+++ Makefile.in 2014-06-18 21:08:48.970775730 +0800
@@ -595,19 +595,19 @@ dist-hook:
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
- $(mkinstalldirs) $(prefix)/share/pixmaps; \
- $(mkinstalldirs) $(prefix)/share/icons; \
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/pixmaps; \
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/icons; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
- $(INSTALL_DATA) $$pixmap $(prefix)/share/pixmaps; \
- $(INSTALL_DATA) $$pixmap $(prefix)/share/icons; \
+ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(prefix)/share/pixmaps; \
+ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(prefix)/share/icons; \
fi \
done \
fi
- $(mkinstalldirs) $(prefix)/share/gnome/apps/Utilities
- cp $(srcdir)/gdcalc.desktop $(prefix)/share/gnome/apps/Utilities
- $(mkinstalldirs) $(prefix)/share/applnk/Applications
- cp $(srcdir)/gdcalc.kdelnk $(prefix)/share/applnk/Applications
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/gnome/apps/Utilities
+ cp $(srcdir)/gdcalc.desktop $(DESTDIR)$(prefix)/share/gnome/apps/Utilities
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/applnk/Applications
+ cp $(srcdir)/gdcalc.kdelnk $(DESTDIR)$(prefix)/share/applnk/Applications
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: