1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix the build error reported bt QAT@

PR:		ports/145853
Submitted by:	Ashish SHUKLA <wahjava@gmail.com> (maintainer)
This commit is contained in:
Wen Heping 2010-04-20 08:45:51 +00:00
parent 4834e5f360
commit 8d6590a59d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252950
2 changed files with 11 additions and 21 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= eukleides
PORTVERSION= 1.5.3
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.eukleides.org/files/
@ -25,7 +26,6 @@ USE_GETTEXT= yes
USE_ICONV= yes
MAN1= eukleides.1 euktoeps.1 euktopdf.1 euktopst.1 euktotex.1
PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
.ifndef NOPORTDOCS
BUILD_DEPENDS= pdflatex:${PORTSDIR}/print/teTeX-base
@ -33,6 +33,10 @@ PORTDOCS= de.pdf fr.pdf
INFO= eukleides
.endif
.ifndef NOPORTEXAMPLES
PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
.endif
post-patch:
${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|#!/bin/bash|#!/bin/sh|g'
@ -48,8 +52,14 @@ post-patch:
-e '/^all:/ s/doc//g' ${WRKSRC}/Makefile
.endif
.ifdef NOPORTEXAMPLES
${REINPLACE_CMD} -e 's/install_exm$$//g' ${WRKSRC}/Makefile
.endif
pre-install:
.ifndef NOPORTEXAMPLES
${MKDIR} ${EXAMPLESDIR}
.endif
post-install:
for i in euktoeps euktopdf euktotex; do \

View File

@ -1,20 +0,0 @@
$FreeBSD$
--- build/Makefile.orig
+++ build/Makefile
@@ -12,12 +12,12 @@
YACC = bison
YFLAGS = -d
CC = gcc
-IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR)
+IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR) "-I%%LOCALBASE%%/../include" "-I%%LOCALBASE%%/include"
ifneq ($(strip $(LOCALES)),)
MOFLAGS = -DMO_DIR=\"$(MO_DIR)\"
endif
CFLAGS = -Wall -D__$(BINARY)__ $(IFLAGS) $(MOFLAGS)
-LDFLAGS = -lncurses -lreadline -lm
+LDFLAGS = -lncurses -lreadline -lm "-L%%LOCALBASE%%/lib" -lintl
VPATH = $(COMMON_DIR):$(MAIN_DIR):$(BUILD_DIR)
$(BINARY):