openbsd-ports/net/ruby-pcap/Makefile
jeremy 4df01cf8a7 Explicitly set ports that only build or run on ruby 1.8 to have both
FLAVOR and FLAVORS set to ruby18, so attempting to build them without a
FLAVOR set still builds the ruby 1.8 version.
2012-09-23 17:00:49 +00:00

41 lines
891 B
Makefile

# $OpenBSD: Makefile,v 1.43 2012/09/23 17:00:49 jeremy Exp $
COMMENT= Ruby interface to LBL Packet Capture library
DISTNAME= ruby-${PKGNAME}
PKGNAME= pcap-0.6
REVISION= 21
CATEGORIES= net
HOMEPAGE= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html
# GPL license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= pcap
FLAVORS= ruby18
FLAVOR= ruby18
MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
MODULES= lang/ruby
CONFIGURE_STYLE= ruby extconf
WRKDIST= ${WRKDIR}/pcap
DOC_DIR= ${MODRUBY_DOCDIR}/pcap/
EXAMPLE_DIR= ${MODRUBY_EXAMPLEDIR}/pcap/
post-install:
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOC_DIR}
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLE_DIR}
.include <bsd.port.mk>