tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Xft.h: No such file or directory



Yes, of course...

# $NetBSD$

DISTNAME=	xnedit-${VERS}
PKGREVISION=	1
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xnedit/}

MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
HOMEPAGE=	https://sourceforge.net/projects/xnedit/
COMMENT=	Fork of NEdit with unicode support and antialiased 
rendering.
LICENSE=	gnu-gpl-v2
VERS=		1.0.1

WRKSRC=			${WRKDIR}/xnedit
BUILD_TARGET=		netbsd
INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PREFIX}/share/doc/xnedit

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/source/xnedit ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/source/xnc ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/xnedit.man \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xnedit.1
	${INSTALL_MAN} ${WRKSRC}/doc/xnc.man \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xnedit-nc.1
.for f in README ReleaseNotes
	 ${INSTALL_DATA} ${WRKSRC}/${f} 
${DESTDIR}${PREFIX}/share/doc/xnedit
.endfor
.for f in faq.txt NEdit.ad
	${INSTALL_DATA} ${WRKSRC}/doc/${f} 
${DESTDIR}${PREFIX}/share/doc/xnedit
.endfor

.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
##############################################

$NetBSD$
# Add system X11 include directory.

--- makefiles/Makefile.netbsd.orig	2019-04-04 14:42:00.000000000 
+0000
+++ makefiles/Makefile.netbsd
@@ -10,7 +10,7 @@ AR=ar
 # To test if the Motif library exports the runtime version
 # add -DHAVE__XMVERSIONSTRING to CFLAGS
 #
-CFLAGS=-O -I/usr/pkg/include -I/usr/pkg/include/X11 -I/usr/X11R7/include 
-DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM `pkg-config --cflags xft 
fontconfig`
-LIBS= -L/usr/X11R7/lib -R/usr/X11R7/lib -liconv -lm -lXm -lXt -lSM -lICE 
-lX11 -lXrender -lXpm -lXext `pkg-config --libs xft fontconfig`
+CFLAGS+=-DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM
+LIBS= ${LDFLAGS} ${MOTIFLIB} -liconv -lm -lXm -lXt -lSM -lICE -lX11 
-lXrender -lXpm -lXext -lXft
 
 include Makefile.common
####################################

If I don't add the CFLAG "-I${X11BASE}/include/X11", then
[...]
cc -O2 -mfpu=neon -D_FORTIFY_SOURCE=2 -I/usr/pkg/include 
-I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 
-DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM  -DPNG_NO_ASSEMBLER_CODE 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/freetype2 -c fontsel.c
fontsel.c:29:10: fatal error: Xft/Xft.h: No such file or directory
 #include <Xft/Xft.h>
          ^~~~~~~~~~~
compilation terminated.
*** Error code 1



Home | Main Index | Thread Index | Old Index