Makefile 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.20 2016/04/05 12:21:41 sthen Exp $
  2. COMMENT= perl interface to the ACEDB database
  3. DISTNAME= AcePerl-1.92
  4. PKGNAME= ${DISTNAME}# No p5-prefix
  5. REVISION= 2
  6. CATEGORIES= biology databases
  7. FLAVORS= opt
  8. FLAVOR?=
  9. # perl licence
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Ace/}
  12. # we patch the Makefile.PL to allow us to set this simply
  13. CONFIGURE_ENV+= PERL_MM_USE_DEFAULT=Yes
  14. MODULES= cpan
  15. MODCPAN_EXAMPLES= Yes
  16. MODCPAN_EXAMPLES_DIR= ${PREFIX}/share/examples/AcePerl/
  17. # go through extra indirection to allow both flavors to share most files.
  18. SUBST_VARS= P5ACE
  19. RUN_DEPENDS= devel/p5-Cache-Cache \
  20. devel/p5-WeakRef \
  21. www/p5-CGI
  22. .if ${FLAVOR:Mopt}
  23. CONFIGURE_ENV+= CHOICE1=2
  24. P5ACE=${P5ARCH}
  25. WANTLIB=c perl
  26. .else
  27. PKG_ARCH= *
  28. CONFIGURE_ENV+= CHOICE1=1
  29. P5ACE=${P5SITE}
  30. .endif
  31. CONFIGURE_ENV+= CHOICE2=n
  32. .include <bsd.port.mk>