mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
5633fbeafa
Approved by: portmgr (blanket)
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
PORTNAME= svgalib
|
|
PORTVERSION= 1.4.3
|
|
PORTREVISION= 8
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= http://www.svgalib.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Low level console graphics library
|
|
WWW= https://www.svgalib.org/
|
|
|
|
LICENSE= PD
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USES= cpe gmake uidfix dos2unix shebangfix
|
|
DOS2UNIX_FILES= utils/gtf/gtf.h utils/gtf/scitech.h
|
|
SHEBANG_FILES= utils/svgakeymap
|
|
USE_LDCONFIG= yes
|
|
|
|
ALL_TARGET= shared static
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "i386"
|
|
MAKE_ENV+= NO_ASM=y
|
|
.endif
|
|
|
|
post-patch: .SILENT
|
|
# Fix for GCC 4.1
|
|
${REINPLACE_CMD} -e '30d' ${WRKSRC}/src/vgabg.h
|
|
${REINPLACE_CMD} -e 's,^ (unsigned [[:alpha:]]*),,' \
|
|
${WRKSRC}/src/apm.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} ${STAGEDIR}${PREFIX}/include/linux
|
|
cd ${WRKSRC}/include/linux && \
|
|
${INSTALL_DATA} keyboard.h kd.h ${STAGEDIR}${PREFIX}/include/linux
|
|
|
|
.include <bsd.port.post.mk>
|