mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
7320638f30
Reported by: pointyhat
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# New ports collection makefile for: SVGAlib
|
|
# Date created: 24 August 2000
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= svgalib
|
|
PORTVERSION= 1.4.3
|
|
PORTREVISION= 6
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= http://www.svgalib.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A low level console graphics library
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_DOS2UNIX= utils/gtf/gtf.h utils/gtf/scitech.h
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
MANCOMPRESSED= yes
|
|
|
|
ALL_TARGET= shared static
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "i386"
|
|
MAKE_ENV= NO_ASM=y
|
|
.endif
|
|
|
|
.for i in 1 2 3 4 5 6 7 8 9
|
|
.if exists(${FILESDIR}/man${i})
|
|
MAN${i}!= ${CAT} ${FILESDIR}/man${i}
|
|
.endif
|
|
.endfor
|
|
|
|
.if ${OSVERSION} < 700000 && ${ARCH} == "amd64"
|
|
BROKEN= does not compile on 6.X
|
|
.endif
|
|
|
|
post-patch: .SILENT
|
|
${MKDIR} ${WRKSRC}/include/linux
|
|
# Fix for GCC 4.1
|
|
${REINPLACE_CMD} -e '30d' ${WRKSRC}/src/vgabg.h
|
|
${REINPLACE_CMD} -e 's,^ (unsigned [[:alpha:]]*),,' \
|
|
${WRKSRC}/src/apm.c
|
|
# Allow to build on !i386
|
|
${REINPLACE_CMD} -e '29,36s,def __alpha__, defined(NO_ASSEMBLY),' \
|
|
${WRKSRC}/src/vgapix.c ${WRKSRC}/gl/driver.c
|
|
# 024_vesa_not_print_crap.patch from Debian
|
|
${REINPLACE_CMD} -e '/^printf/d' ${WRKSRC}/src/vesa.c
|
|
# Clean up after typo fixes in manpages
|
|
${FIND} ${WRKSRC}/doc -type f -name '*.[57].orig' -delete
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/include/linux
|
|
cd ${WRKSRC}/include/linux && \
|
|
${INSTALL_DATA} keyboard.h kd.h ${PREFIX}/include/linux
|
|
|
|
.include <bsd.port.post.mk>
|