my first port - getopt.h where and how?
Lauri JJärvenpää
Lauri.Jarvenpaa at students.turkuamk.fi
Thu Jun 10 17:22:10 GMT 2004
Sorry to bother but:
I'm trying to get Matterial Flipbook
(http://matterial.sourceforge.net/mflip/) to compile on my machine. So far
I have not been lucky. I *think* it configures fine and it *seems* to start
compiling - but then it gives this:
===> Building for mflip-0.3.0
make all-recursive
Making all in src
source='read_cin.c' object='read_cin.o' libtool=no
depfile='.deps/read_cin.Po'
tmpdepfile='.deps/read_cin.TPo' depmode=gcc /bin/sh ../depcomp cc
-DHAVE_CONFI
G_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/glib12 -O2
-pipe
-march=k6 -c `test -f read_cin.c || echo './'`read_cin.c
read_cin.c:22: getopt.h: No such file or directory
read_cin.c: In function `initCinDpx':
read_cin.c:163: `optind' undeclared (first use in this function)
read_cin.c:163: (Each undeclared identifier is reported only once
read_cin.c:163: for each function it appears in.)
read_cin.c:168: `optarg' undeclared (first use in this function)
*** Error code 1
Stop in /usr/ports/graphics/mflip/work/mflip-0.3.0/src.
*** Error code 1
Stop in /usr/ports/graphics/mflip/work/mflip-0.3.0.
*** Error code 1
Stop in /usr/ports/graphics/mflip/work/mflip-0.3.0.
*** Error code 1
Stop in /usr/ports/graphics/mflip.
I tried to make it depend on libgnugetopt because I thought it might be
that but apparently it is not.
I have been reading porters handbook but either I am quite stupid and
ignorant or answer is not there :(
I'm using FBSD4.10.
My lame Makefile:
# New ports collection makefile for: oneko
# Date created: 5 December 1994
# Whom: asami
#
# $FreeBSD$
#
PORTNAME= mflip
PORTVERSION= 0.3.0
CATEGORIES= graphics
MASTER_SITES= http://matterial.sourceforge.net/mflip/
MAINTAINER= asami at FreeBSD.org
COMMENT= Matterial FlipBook.
BUILD_DEPENDS= libgnugetopt:${PORTSDIR}/devel/libgnugetopt
LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff
USE_X_PREFIX= yes
USE_XLIB= yes
MAN1= mflip.1
MANCOMPRESSED= yes
#CONFIGURE= yes
GNU_CONFIGURE= yes
#USE_IMAKE= yes
.include <bsd.port.mk>
PS:
Could you possibly also answer off-list since I'm not on the list. Thank
you.
More information about the freebsd-ports
mailing list