1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/math/wingz3/Makefile
Tijl Coosemans 82a87de90c - Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with
Mk/Uses/linux.mk.
- Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with
  USES+=linux:\1 in all ports.
- Replace USE_LINUX_APPS with USE_LINUX in all ports.
- Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some
  ports.
- When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY
  are defined.
- Remove BRANDELF_DIRS and BRANDELF_FILES handling.  In the very rare cases
  that it is still necessary ports can run ${BRANDELF} from post-patch.
- Remove AUTOMATIC_PLIST handling.  Only one port used it.
- Fix Linux MASTER_SITES.
- Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with
  default versions framework.
- bsd.port.mk:
  - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX.
  - Put USE_LINUX_PREFIX handling after USES processing.
  - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can
    give these variables a different default value.
  - When a package needs to run Linux ldconfig check before installation if
    Linux support is enabled.
- emulators/linux_base-*:
  - Use USES=linux and remove duplication.
  - Remove files/lp.  FreeBSD or CUPS lp(1) should work.
  - Remove files/yp.conf.  No longer seems to be used.
  - Remove pkg-deinstall and move pkg-install into pkg-plist.
  - Update pkg-descr and pkg-message.
  - Fix handling of ldconfig cache in pkg-plist.
- devel/fb-adb: Use a Linux shell to run a Linux script but patch the script
  to use FreeBSD mkdir so mkdir -p $path creates $path and not
  /compat/linux/$path.

PR:		211645
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-05 19:23:42 +00:00

49 lines
1.4 KiB
Makefile

# Created by: erich@rrnet.com
# $FreeBSD$
PORTNAME= wingzpro
PORTVERSION= 311
PORTREVISION= 3
CATEGORIES= math linux
MASTER_SITES= SUNSITE/apps/financial/spreadsheet:wingz \
${MASTER_SITE_FEDORA_LINUX:M*rpmfind.net/*:S|/fedora/core||}:l
MASTER_SITE_SUBDIR= redhat-archive/6.2/en/os/i386/RedHat/RPMS/:l
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:wingz \
ld.so-1.9.5-13.i386.rpm:l \
libc-5.3.12-31.i386.rpm:l
EXTRACT_ONLY=
MAINTAINER= mi@aldan.algebra.com
COMMENT= Commercial Spreadsheet
NO_PACKAGE= Commercial software with nothing to build - install from port
IA32_BINARY_PORT=yes
USES= linux
USE_LINUX= xorglibs
SUB_FILES= Wingz3
PLIST_SUB+= LINUXBASE=${LINUXBASE}
OLDLIBS= libm.so.5 libg++.so.27 libstdc++.so.27 libc.so.5 \
libXpm.so.4 libXmu.so.6 libXext.so.6 libXt.so.6 \
libX11.so.6 libICE.so.6 libSM.so.6
NO_BUILD= yes
do-install:
${TAR} -xzp -C ${STAGEDIR}${PREFIX} \
-f ${DISTDIR}/${_DISTFILES:Mwing*}
${MKDIR} ${STAGEDIR}${LINUXBASE} ${STAGEDIR}${PREFIX}/Wingz3/lib/libc5
${TAR} -xp -C ${STAGEDIR}${LINUXBASE} \
-f ${DISTDIR}/${_DISTFILES:Mld.so-*} lib/
${TAR} -xp -C ${STAGEDIR}${PREFIX}/Wingz3/lib/libc5 \
--strip-components 3 \
--exclude libXext.so.6.1 \
-f ${DISTDIR}/${_DISTFILES:Mlibc-*} \
${OLDLIBS:S|^|usr/i486-linux-libc5/lib/|:S|$|*|}
.for l in ${OLDLIBS}
cd ${STAGEDIR}${PREFIX}/Wingz3/lib/libc5 && ${LN} -s $l.* $l
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/Wingz3 ${STAGEDIR}${PREFIX}/bin/Wingz3
.include <bsd.port.mk>