Makefile 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # $OpenBSD: Makefile,v 1.26 2016/09/03 10:22:00 sthen Exp $
  2. COMMENT = digital camera RAW format conversion tool
  3. DISTNAME = dcraw-9.27.0
  4. CATEGORIES = graphics
  5. HOMEPAGE = http://www.cybercom.net/~dcoffin/dcraw/
  6. MASTER_SITES = http://cybercom.net/~dcoffin/dcraw/archive/
  7. # Some code is completely free, some is under the GPL
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB = c jasper jpeg lcms2 m
  10. LIB_DEPENDS = graphics/jasper \
  11. graphics/jpeg \
  12. graphics/lcms2
  13. NO_TEST = Yes
  14. SEPARATE_BUILD = Yes
  15. WRKDIST = ${WRKDIR}/dcraw
  16. do-build:
  17. ${CC} ${CFLAGS} -c -o ${WRKBUILD}/dcraw.o -I${PREFIX}/include \
  18. ${WRKSRC}/dcraw.c
  19. ${CC} ${CFLAGS} -o ${WRKBUILD}/dcraw -ljpeg -lm -llcms2 -ljasper \
  20. -L${PREFIX}/lib ${WRKBUILD}/dcraw.o
  21. do-install:
  22. ${INSTALL_PROGRAM} ${WRKBUILD}/dcraw ${PREFIX}/bin
  23. ${INSTALL_MAN} ${WRKSRC}/dcraw.1 ${PREFIX}/man/man1
  24. .include <bsd.port.mk>