mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
0263b9d868
both current (fc4) and future linux (f8) distributions at one ports tree. The patch contains full changes to ports/Mk files and all ports involved. But only infrastructure is changed. The resulting packages are the same as before. Hence no need to bump PORTREVISIONs. The idea was taken from bsd.gnome.mk and others. More than 130 ports are switched to follow a new linux infrastructure introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new bsd.linux-apps.mk. Thanks for all who was involved and helped me with this work. And help from Alexander Leidinger was incredible. Other changes are coming. Stay tuned! PR: ports/132510 Submitted by: bsam (me) Exp-run by: portmgr (pav)
104 lines
2.9 KiB
Makefile
104 lines
2.9 KiB
Makefile
# New ports collection makefile for: linux-runrev
|
|
# Date created: 13 November 2002
|
|
# Whom: Marc Fonvieille <blackend@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= runrev
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel linux
|
|
MASTER_SITES= http://www.runrev.com/revolution/engines11/unix/
|
|
PKGNAMEPREFIX= linux-
|
|
DISTNAME= linux
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Revolution is a rapid application development environment
|
|
|
|
RUN_DEPENDS= xanim:${PORTSDIR}/multimedia/xanim
|
|
|
|
NO_CDROM= "Sale for profit is not permitted"
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
NO_BUILD= yes
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= xorglibs
|
|
|
|
WRKSRC= ${WRKDIR}/Revolution-${PORTVERSION}
|
|
DATADIR= ${PREFIX}/share/Revolution-${PORTVERSION}
|
|
|
|
BIN_FILES= revolution
|
|
LIB_DIRS= Databases components components/assistants \
|
|
components/help components/help/Appendixes \
|
|
components/help/tutorials \
|
|
components/help/tutorials/exercises \
|
|
components/help/tutorials/modules components/save \
|
|
components/save/userobjects components/tools plugins
|
|
|
|
# revolution requires these to be in the same directory
|
|
LIB_FILES= LicenseAgreement ReadMeFirst license.rev
|
|
|
|
# trick to work with space in directory names
|
|
# we replace space with _
|
|
LIB_DIRS_HACK= External_SDK External_SDK/external_Data \
|
|
External_SDK/external_Data/Basic_Toolbox_FAT \
|
|
External_SDK/external_Data/MCexternal68K \
|
|
External_SDK/external_Data/MCexternalCarbon \
|
|
External_SDK/external_Data/MCexternalPPC Made_With_Logos \
|
|
Made_With_Logos/Graphics components/global_environment \
|
|
components/help/tutorials/exercises/Employee_Data \
|
|
components/help/tutorials/exercises/Employee_Data/images \
|
|
components/properties_palettes
|
|
|
|
post-patch:
|
|
@${SED} -e "s|%%PREFIX%%|${DATADIR}|" ${FILESDIR}/wrapper.sh > \
|
|
${WRKDIR}/wrapper.sh
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
# @${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${DATADIR} --unlink -xf -
|
|
# create dirs and install files with proper permissions
|
|
.for dir in ${LIB_DIRS}
|
|
@${MKDIR} ${DATADIR}/${dir}
|
|
@for file in ${WRKSRC}/${dir}/* ; \
|
|
do \
|
|
if [ -f "$${file}" ]; \
|
|
then \
|
|
${INSTALL_DATA} "$${file}" \
|
|
${DATADIR}/${dir} ; \
|
|
fi ; \
|
|
done
|
|
.endfor
|
|
# additional dirs but with space in their names
|
|
.for dir in ${LIB_DIRS_HACK}
|
|
@dir_processed=`${ECHO_CMD} ${dir} | ${TR} "_" " "` ; \
|
|
${MKDIR} ${DATADIR}/"$${dir_processed}" ; \
|
|
for file in ${WRKSRC}/"$${dir_processed}"/* ; \
|
|
do \
|
|
if [ -f "$${file}" ]; \
|
|
then \
|
|
${INSTALL_DATA} "$${file}" \
|
|
${DATADIR}/"$${dir_processed}" ; \
|
|
fi ; \
|
|
done
|
|
.endfor
|
|
# extra lib files
|
|
.for file in ${LIB_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/${file}
|
|
.endfor
|
|
# binaries
|
|
.for file in ${BIN_FILES}
|
|
@${STRIP_CMD} ${WRKSRC}/${file}
|
|
@${BRANDELF} -t Linux ${WRKSRC}/${file}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${DATADIR}/${file}
|
|
.endfor
|
|
# install wrapper
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/revolution
|
|
|
|
.include <bsd.port.post.mk>
|