diff options
author | johans <johans@FreeBSD.org> | 2013-12-30 04:25:29 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2013-12-30 04:25:29 +0800 |
commit | 4e9e69d5d93c5dca13a5dc68d38ba6365796a3dd (patch) | |
tree | 4bf395d80109a796bb78b6b2d2e1fbda1955c91b | |
parent | 8a51d7304b47a3404be347340702df47c3b1a166 (diff) | |
download | freebsd-ports-gnome-4e9e69d5d93c5dca13a5dc68d38ba6365796a3dd.tar.gz freebsd-ports-gnome-4e9e69d5d93c5dca13a5dc68d38ba6365796a3dd.tar.zst freebsd-ports-gnome-4e9e69d5d93c5dca13a5dc68d38ba6365796a3dd.zip |
Enable stage support
-rw-r--r-- | mail/emil/Makefile | 2 | ||||
-rw-r--r-- | mail/emil/files/patch-Makefile.in | 64 | ||||
-rw-r--r-- | mail/emil/pkg-plist | 2 |
3 files changed, 61 insertions, 7 deletions
diff --git a/mail/emil/Makefile b/mail/emil/Makefile index ee88b8cf19fa..770fd35860f3 100644 --- a/mail/emil/Makefile +++ b/mail/emil/Makefile @@ -17,11 +17,9 @@ COMMENT= Mail format/encoding converter GNU_CONFIGURE= yes CONFIGURE_ENV= YACC=byacc -MAN1= emil.1 emil.cf.1 .if defined(NOPORTDOCS) MAKE_ENV= NOPORTDOCS=${NOPORTDOCS} .endif -NO_STAGE= yes .include <bsd.port.mk> diff --git a/mail/emil/files/patch-Makefile.in b/mail/emil/files/patch-Makefile.in index 62b2b3c4fe60..fe0fbed4997a 100644 --- a/mail/emil/files/patch-Makefile.in +++ b/mail/emil/files/patch-Makefile.in @@ -1,5 +1,5 @@ --- Makefile.in.orig 1996-06-04 13:54:32.000000000 +0200 -+++ Makefile.in 2011-07-25 20:21:13.000000000 +0200 ++++ Makefile.in 2013-12-29 21:24:36.000000000 +0100 @@ -41,9 +41,10 @@ exec_prefix = @exec_prefix@ #manprefix = @@ -12,16 +12,70 @@ MAINCF = $(libdir)/emil.cf CHARFILE = $(libdir)/charsets.cpl -@@ -262,6 +263,12 @@ install: installdirs - $(INSTALL_DATA) emil.cf.$(manext) $(mandir)/man$(manext); \ +@@ -213,14 +214,14 @@ test: + + install: installdirs + @if test -f emil ; then \ +- if test -f $(bindir)/emil ; then \ ++ if test -f $(DESTDIR)$(bindir)/emil ; then \ + echo " " ;\ + echo "Saving $(bindir)/emil in $(bindir)/emil.bak" ; \ +- mv $(bindir)/emil $(bindir)/emil.bak ; \ ++ mv $(DESTDIR)$(bindir)/emil $(DESTDIR)$(bindir)/emil.bak ; \ + fi ; \ + echo " " ;\ + echo "Installing emil as $(bindir)/emil" ; \ +- $(INSTALL_PROGRAM) emil $(bindir)/emil ; \ ++ $(INSTALL_PROGRAM) emil $(DESTDIR)$(bindir)/emil ; \ + fi ; + @if test -f emil.cf ; then \ + if test -f $(MAINCF) ; then \ +@@ -237,35 +238,41 @@ install: installdirs + else \ + echo " " ;\ + echo "Installing emil.cf as $(MAINCF)" ; \ +- $(INSTALL_DATA) emil.cf $(MAINCF) ; \ ++ $(INSTALL_DATA) emil.cf $(DESTDIR)$(MAINCF) ; \ + fi ; \ + fi ; + @if test -f charset/charsets.cpl ; then \ +- if test -f $(CHARFILE) ; then \ ++ if test -f $(DESTDIR)$(CHARFILE) ; then \ + echo " " ;\ + echo "Keeping $(CHARFILE) as is" ; \ + else \ + echo " " ;\ + echo "Installing charset/charsets.cpl as $(CHARFILE)";\ +- $(INSTALL_DATA) charset/charsets.cpl $(CHARFILE); \ +- chmod 444 $(CHARFILE) ; \ ++ $(INSTALL_DATA) charset/charsets.cpl $(DESTDIR)$(CHARFILE); \ ++ chmod 444 $(DESTDIR)$(CHARFILE) ; \ + fi ; \ + fi ; + @if test -f emil.$(manext) ; then \ + echo " " ;\ + echo "Installing emil.$(manext) in $(mandir)/man$(manext)";\ +- $(INSTALL_DATA) emil.$(manext) $(mandir)/man$(manext); \ ++ $(INSTALL_DATA) emil.$(manext) $(DESTDIR)$(mandir)/man$(manext); \ + fi ; + @if test -f emil.cf.$(manext) ; then \ + echo " " ;\ + echo "Installing emil.cf.$(manext) in $(mandir)/man$(manext)";\ +- $(INSTALL_DATA) emil.cf.$(manext) $(mandir)/man$(manext); \ ++ $(INSTALL_DATA) emil.cf.$(manext) $(DESTDIR)$(mandir)/man$(manext); \ fi ; @echo " " ; +.if !defined(NOPORTDOCS) -+ $(srcdir)/mkinstalldirs $(datadir)/doc/emil ++ $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/doc/emil + @echo "Installing doc files in $(datadir)/doc/emil" ; -+ @$(INSTALL_DATA) $(DOCS) $(datadir)/doc/emil/ ++ @$(INSTALL_DATA) $(DOCS) $(DESTDIR)$(datadir)/doc/emil/ +.endif + @echo " " ; @echo "Installation done." ; installdirs: +- $(srcdir)/mkinstalldirs $(bindir) $(libdir) $(mandir)/man$(manext) ++ $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(mandir)/man$(manext) + + uninstall: + if test -f $(bindir)/emil ; then \ diff --git a/mail/emil/pkg-plist b/mail/emil/pkg-plist index ed618fc5b7cb..7c9a5b058068 100644 --- a/mail/emil/pkg-plist +++ b/mail/emil/pkg-plist @@ -1,6 +1,8 @@ bin/emil lib/charsets.cpl lib/emil.cf +man/man1/emil.1.gz +man/man1/emil.cf.1.gz %%PORTDOCS%%%%DOCSDIR%%/analysis.html %%PORTDOCS%%%%DOCSDIR%%/arguments.html %%PORTDOCS%%%%DOCSDIR%%/arrow_left3.gif |