mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
004219de73
with gcc 3.3 with a -mcpu or -march flag (even -mcpu=pentiumpro, which is the default CPU cflag that bsd.cpu.mk sets, leads ruby to coredump). Although currently I'm not sure if gcc 3.3's optimization has a bug or it is that it just exposed the dl module's hidden bug, disable those flags to work around the problem for the moment.
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# New ports collection makefile for: ruby16-shim-ruby18
|
|
# Date created: 5 May 2002
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= shim-ruby18
|
|
PORTVERSION= 1.8.0.p2.2003.04.19
|
|
PORTREVISION= 1
|
|
CATEGORIES= lang devel ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
MASTER_SITE_SUBDIR= shim
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= shim-ruby16_18-1.8.0-preview2-2003.04.19
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= A set of Ruby modules to provide Ruby 1.8 functionalities
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
MAKE_ARGS= RUBY=${RUBY}
|
|
#CONFIGURE_ARGS+= CONFIGURE_ARGS="-- --config-opt=--with-opt-dir=${LOCALBASE}"
|
|
WRKSRC= ${WRKDIR}/shim/ruby16
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${RUBY_VER} >= 1.7
|
|
IGNORE= is only for ruby 1.6, ruby ${RUBY_VER} does not need it
|
|
.endif
|
|
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
IF_DEFAULT= ""
|
|
.else
|
|
IF_DEFAULT= "@comment "
|
|
.endif
|
|
|
|
INSTALLED_SCRIPTS= ${PREFIX}/bin/erb \
|
|
${PREFIX}/bin/h2rb
|
|
|
|
PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \
|
|
|
|
pre-install:
|
|
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
# Make make reinstall work
|
|
${RM} -f ${WRKSRC}/InstalledFiles
|
|
|
|
post-install:
|
|
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
|
for f in ${INSTALLED_SCRIPTS}; do \
|
|
${LN} -f $${f}${RUBY_R} $${f}${_RUBY_SUFFIX}; \
|
|
done
|
|
.endif
|
|
|
|
|
|
.include <bsd.port.post.mk>
|