Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # $OpenBSD: Makefile,v 1.57 2016/12/03 11:22:50 landry Exp $
  2. COMMENT= SIMD-accelerated JPEG codec replacement of libjpeg
  3. V= 1.5.1
  4. DISTNAME= jpeg-turbo-${V}
  5. PKGNAME= jpeg-${V}
  6. REVISION= 0
  7. EPOCH= 0
  8. SHARED_LIBS+= jpeg 68.1 # 64.0
  9. CATEGORIES= graphics
  10. DPB_PROPERTIES= parallel
  11. HOMEPAGE= http://libjpeg-turbo.virtualgl.org/
  12. # BSD-style
  13. PERMIT_PACKAGE_CDROM= Yes
  14. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libjpeg-turbo/}
  15. DISTFILES= libjpeg-turbo-${V}.tar.gz
  16. WANTLIB= c
  17. .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
  18. BUILD_DEPENDS= devel/yasm
  19. .endif
  20. SEPARATE_BUILD= Yes
  21. CONFIGURE_STYLE=gnu
  22. # Symbol versioning triggers weird linking problems in dependent ports.
  23. CONFIGURE_ARGS+=--disable-ld-version-script \
  24. --without-turbojpeg
  25. WRKDIST= ${WRKDIR}/lib${DISTNAME}
  26. post-install:
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jpeg
  28. ${INSTALL_DATA} ${WRKSRC}/libjpeg.txt ${WRKSRC}/wizard.txt \
  29. ${PREFIX}/share/doc/jpeg
  30. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/jpeg
  31. ${INSTALL_DATA} ${WRKSRC}/example.c ${PREFIX}/share/examples/jpeg
  32. .include <bsd.port.mk>