mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
9fa9eb9ac7
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
73 lines
2.4 KiB
Plaintext
73 lines
2.4 KiB
Plaintext
--- Makefile.orig 2008-06-11 01:03:39 UTC
|
|
+++ Makefile
|
|
@@ -1,15 +1,18 @@
|
|
-PREFIX=/usr
|
|
+PREFIX=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
DOCDIR=$(PREFIX)/share/doc/gnormalize
|
|
ICONDIR=$(PREFIX)/share/icons
|
|
ICONDIR2=$(PREFIX)/share/pixmaps
|
|
LICONDIR=$(ICONDIR)/large
|
|
MICONDIR=$(ICONDIR)/mini
|
|
-BASE=$(PREFIX)/share/gnormalize
|
|
+BASE=/usr/local/share/gnormalize
|
|
ANIMDIR=$(BASE)/animations
|
|
-MANDIR=$(PREFIX)/share/man
|
|
+MANDIR=/usr/local/man
|
|
+INSTALL_PROG=install -m 755
|
|
+INSTALL_DATA=install -m 444
|
|
|
|
DOCS=README
|
|
+MAN_PAGE=gnormalize.1
|
|
|
|
all:
|
|
clean:
|
|
@@ -17,29 +20,30 @@ distclean: clean
|
|
|
|
|
|
install: all
|
|
- mkdir -p "$(BINDIR)"
|
|
- mkdir -p "$(ICONDIR)"
|
|
- mkdir -p "$(ICONDIR2)"
|
|
- mkdir -p "$(ANIMDIR)"
|
|
- mkdir -p "$(DOCDIR)"
|
|
- mkdir -p "$(MANDIR)/man1/"
|
|
- install -Dm 0755 gnormalize "$(BINDIR)/gnormalize"
|
|
- install -m 0644 $(DOCS) "$(DOCDIR)/"
|
|
- install -m 0644 $(DOCS) "$(BASE)/"
|
|
- install -m 0644 gnormalize.1.lzma "$(MANDIR)/man1/gnormalize.1.lzma"
|
|
- install -d "$(ANIMDIR)"
|
|
- install -m 0644 animations/*.gif "$(ANIMDIR)/"
|
|
- install -Dm 0644 icons/gnormalize-32.png "$(ICONDIR)/gnormalize.png"
|
|
- install -Dm 0644 icons/gnormalize-48.png "$(LICONDIR)/gnormalize.png"
|
|
- install -Dm 0644 icons/gnormalize-16.png "$(MICONDIR)/gnormalize.png"
|
|
- ln -sf "$(ICONDIR)/gnormalize.png" "$(ICONDIR2)/gnormalize.png"
|
|
+ cat "$(MAN_PAGE).lzma" | lzma -d -- > "$(MAN_PAGE)"
|
|
+ mkdir -p "$(DESTDIR)$(BINDIR)"
|
|
+ mkdir -p "$(DESTDIR)$(ICONDIR)"
|
|
+ mkdir -p "$(DESTDIR)$(ICONDIR2)"
|
|
+ mkdir -p "$(DESTDIR)$(LICONDIR)"
|
|
+ mkdir -p "$(DESTDIR)$(MICONDIR)"
|
|
+ mkdir -p "$(DESTDIR)$(ANIMDIR)"
|
|
+ mkdir -p "$(DESTDIR)$(MANDIR)/man1/"
|
|
+ $(INSTALL_PROG) gnormalize "$(DESTDIR)$(BINDIR)/gnormalize"
|
|
+ $(INSTALL_DATA) $(DOCS) "$(DESTDIR)$(BASE)/"
|
|
+ $(INSTALL_DATA) $(MAN_PAGE) "$(DESTDIR)$(MANDIR)/man1/$(MAN_PAGE)"
|
|
+ install -d "$(DESTDIR)$(ANIMDIR)"
|
|
+ $(INSTALL_DATA) animations/*.gif "$(DESTDIR)$(ANIMDIR)/"
|
|
+ $(INSTALL_DATA) icons/gnormalize-32.png "$(DESTDIR)$(ICONDIR)/gnormalize.png"
|
|
+ $(INSTALL_DATA) icons/gnormalize-48.png "$(DESTDIR)$(LICONDIR)/gnormalize.png"
|
|
+ $(INSTALL_DATA) icons/gnormalize-16.png "$(DESTDIR)$(MICONDIR)/gnormalize.png"
|
|
+ ln -sf "$(ICONDIR)/gnormalize.png" "$(DESTDIR)$(ICONDIR2)/gnormalize.png"
|
|
|
|
postinstall:
|
|
update-menus
|
|
|
|
uninstall:
|
|
rm -f "$(BINDIR)/gnormalize"
|
|
- rm -f "$(MANDIR)/man1/gnormalize.1.lzma"
|
|
+ rm -f "$(MANDIR)/man1/gnormalize.1"
|
|
rm -f "$(ICONDIR)/gnormalize.png"
|
|
rm -f "$(LICONDIR)/gnormalize.png"
|
|
rm -f "$(MICONDIR)/gnormalize.png"
|