diff --git a/graphics/pho/Makefile b/graphics/pho/Makefile index bd8cbe8d7c24..e492d0283015 100644 --- a/graphics/pho/Makefile +++ b/graphics/pho/Makefile @@ -1,28 +1,23 @@ PORTNAME= pho PORTVERSION= 1.0 PORTREVISION= 1 CATEGORIES= graphics -MASTER_SITES= http://shallowsky.com/software/pho/ +MASTER_SITES= ${WWW} MAINTAINER= danfe@FreeBSD.org COMMENT= Lightweight image viewer WWW= https://shallowsky.com/software/pho/ LICENSE= GPLv2 USES= gmake gnome pkgconfig USE_GNOME= gtk20 -MAKE_ARGS= INSTALLPREFIX="${STAGEDIR}${PREFIX}" ALL_TARGET= ${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz +PLIST_FILES= bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz post-patch: - @${REINPLACE_CMD} -e 's|make|$$(MAKE)| ; \ - /bin/s|$$(INSTALL)|${INSTALL_PROGRAM}| ; \ - /man/s|$$(INSTALL)|${INSTALL_MAN}| ; \ - /CFLAGS/s|-g ||' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|-Wall -g -O2 ||' ${WRKSRC}/exif/Makefile .include diff --git a/graphics/pho/files/patch-Makefile b/graphics/pho/files/patch-Makefile new file mode 100644 index 000000000000..80202ca0ddd7 --- /dev/null +++ b/graphics/pho/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig 2020-09-26 16:16:24 UTC ++++ Makefile +@@ -4,7 +4,7 @@ VERSION = 1.0 + + # Locate the gtk/gdk libraries (thanks to nev for this!) + GTKFLAGS := $(shell pkg-config --cflags gtk+-2.0 gdk-2.0 2> /dev/null) +-CFLAGS += -g -Wall -pedantic -DVERSION='"$(VERSION)"' $(GTKFLAGS) ++CFLAGS += -Wall -pedantic -DVERSION='"$(VERSION)"' $(GTKFLAGS) + + XLIBS := $(shell pkg-config --libs gtk+-2.0 > /dev/null) + GLIBS := $(shell pkg-config --libs gtk+-2.0 gdk-2.0) +@@ -57,8 +57,8 @@ deb: pho + dpkg-buildpackage -rfakeroot + + install: pho +- $(INSTALL) pho $(INSTALLPREFIX)/bin/pho +- $(INSTALL) doc/pho.1 $(INSTALLPREFIX)/man/man1/pho.1 ++ $(BSD_INSTALL_PROGRAM) pho $(DESTDIR)$(PREFIX)/bin ++ $(BSD_INSTALL_MAN) doc/pho.1 $(DESTDIR)$(PREFIX)/share/man/man1 + + clean: + rm -f *.[oas] *.ld core* pho pho-*.tar.gz *.rpm *.tar.gz