Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # $OpenBSD: Makefile,v 1.37 2017/05/09 20:09:48 naddy Exp $
  2. COMMENT= X11 animation player with support for lots of formats
  3. DISTNAME= xanim-2.80.1
  4. REVISION= 8
  5. WRKDIST= ${WRKDIR}/xanim2801
  6. CATEGORIES= graphics x11
  7. MAINTAINER= Marc Espie <espie@openbsd.org>
  8. DIST_SUBDIR=xanim
  9. MASTER_SITES=http://xanim.polter.net/files/
  10. MASTER_SITES0=ftp://ftp.ut.ee/pub/graphics/xanim/modules/
  11. # License: NOFEE
  12. PERMIT_PACKAGE_CDROM= No Fee
  13. PERMIT_PACKAGE_FTP= Yes
  14. WANTLIB= ICE SM X11 Xau Xdmcp Xext Xt c m sndio z
  15. BASEDISTFILE=xanim2801.tar.gz
  16. DISTFILES=${BASEDISTFILE}
  17. PATCH_LIST=patch-*
  18. SUP_i386 = xa1.0_cyuv_linuxELF.o.Z:0 \
  19. xa2.0_cvid_linuxELF.o.Z:0 \
  20. xa2.0_iv32_linuxELF.o.Z:0
  21. # some architectures support more codecs
  22. .if (${MACHINE_ARCH} == i386)
  23. SUPFILES= ${SUP_i386}
  24. PATCH_LIST+=i386-patch
  25. .endif
  26. SUPDISTFILES=${SUP_i386}
  27. .if defined(SUPFILES)
  28. DISTFILES += ${SUPFILES}
  29. EXTRACT_ONLY=${BASEDISTFILE}
  30. post-extract:
  31. @${ECHO_MSG} "===> Adding ${MACHINE_ARCH} specific object files"
  32. @for i in ${SUPFILES:S/:0$//}; do \
  33. j=`basename $$i`; \
  34. cp ${FULLDISTDIR}/$$i ${WRKSRC} && uncompress ${WRKSRC}/$$j; \
  35. done
  36. .endif
  37. post-configure:
  38. ln ${WRKSRC}/docs/xanim.man ${WRKSRC}
  39. CONFIGURE_STYLE= imake
  40. DOCDIR=${PREFIX}/share/doc/xanim
  41. NO_TEST= Yes
  42. post-install:
  43. ${INSTALL_DATA_DIR} ${DOCDIR}
  44. for file in ${WRKSRC}/docs/*; \
  45. do \
  46. [ $$file == ${WRKSRC}/docs/xanim.man ] || ${INSTALL_DATA} $$file ${DOCDIR}; \
  47. done
  48. .include <bsd.port.mk>