41 lines
916 B
Makefile
41 lines
916 B
Makefile
# $NetBSD: Makefile,v 1.4 2011/11/11 19:15:49 joerg Exp $
|
|
|
|
DISTNAME= ruby-xz-0.0.1
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
|
|
CATEGORIES= archivers
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
|
HOMEPAGE= https://github.com/Quintus/ruby-xz
|
|
COMMENT= Ruby bindings for liblzma
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
DEPENDS+= xz-[0-9]*:../../archivers/xz
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-ffi-[0-9]*:../../devel/ruby-ffi
|
|
LICENSE= mit
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
RUBY_VERSION_REQD= 19
|
|
RUBYGEMS_REQD= 1.8.10
|
|
|
|
PRIVILEGED_STAGES+= clean
|
|
|
|
EVAL_PREFIX+= XZ_PREFIX=xz
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= lib/xz.rb
|
|
SUBST_SED.path= -e "s,@LOCALBASE@,${XZ_PREFIX},g"
|
|
SUBST_SED.path+= -e "s,@SHLIB_EXT@,${SHLIB_EXT},g"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${_OPSYS_SHLIB_TYPE} == "dylib"
|
|
SHLIB_EXT= dylib
|
|
.else
|
|
SHLIB_EXT= so
|
|
.endif
|
|
|
|
.include "../../lang/ruby/gem.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|