Makefile 712 B

123456789101112131415161718192021222324252627282930
  1. # $OpenBSD: Makefile,v 1.3 2016/07/01 07:44:19 jasper Exp $
  2. COMMENT = lossless PNG optimizer
  3. DISTNAME = optipng-0.7.6
  4. CATEGORIES = graphics
  5. HOMEPAGE = http://optipng.sourceforge.net/
  6. MAINTAINER = Kyle Isom <kyle@tyrfingr.is>
  7. # zlib
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB += c m png z
  10. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=optipng/}
  11. LIB_DEPENDS = graphics/png
  12. CONFIGURE_STYLE = simple
  13. CONFIGURE_ARGS += -with-system-zlib -with-system-libpng
  14. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
  15. LDFLAGS="-L${LOCALBASE}/lib"
  16. do-install:
  17. ${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${PREFIX}/bin
  18. ${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${PREFIX}/man/man1
  19. .include <bsd.port.mk>