8fea07bd91
was from Dec 2004). The only difference is empty `Debug' directory and two binary files generated by MSVC. Thus, switch to older distfile as it is more likely to be the original; augment MASTER_SITES; use NO_WRKSUBDIR - Do not patch things in post-extract, do so in post-patch - Apparently "MeQCC" is preferred spelling, so adjust Makefile header while I am here
43 lines
951 B
Makefile
43 lines
951 B
Makefile
# New ports collection makefile for: MeQCC
|
|
# Date created: 16 Jan 2005
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= meqcc
|
|
PORTVERSION= 1.4
|
|
CATEGORIES= games devel
|
|
MASTER_SITES= ftp://ftp.clan-rum.org/quake/qutils/ \
|
|
http://freebsd.nsu.ru/distfiles/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}src
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= MrElusive's QuakeC compiler
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= yes
|
|
MAKEFILE= linux.mak
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= bin/meqcc
|
|
PORTDOCS= *
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/<io\.h>/<unistd.h>/ ; /<conio\.h>/d' \
|
|
${WRKSRC}/l_log.c
|
|
@${REINPLACE_CMD} -e 's/unsigned long t/time_t t/' \
|
|
${WRKSRC}/l_precomp.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qcc ${PREFIX}/bin/${PORTNAME}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/[^gr]*.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
.include "${.CURDIR}/../quake-source/Makefile.include"
|
|
.include <bsd.port.mk>
|