From owner-freebsd-ports@FreeBSD.ORG Mon Feb 20 11:38:55 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F42316A420 for ; Mon, 20 Feb 2006 11:38:55 +0000 (GMT) (envelope-from rajkumars@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0890443D45 for ; Mon, 20 Feb 2006 11:38:54 +0000 (GMT) (envelope-from rajkumars@gmail.com) Received: by xproxy.gmail.com with SMTP id i31so636223wxd for ; Mon, 20 Feb 2006 03:38:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nU0rtJDTUUsTxnz7mgcssOdnX3OW/26Z/tdHvtfnVvKSDG9jJxz7tOPZIlErB0uojYxZy8AEmVO0UiDYV9lq9ARf3MZ6/37QjNpZdIrNktBABfF0+pIutqOzA9wPlTvsQNFQJzLfq/FWx9Tjhu61eoQzvKkP0wujrebDZhv5lgo= Received: by 10.70.118.15 with SMTP id q15mr3746441wxc; Mon, 20 Feb 2006 03:38:54 -0800 (PST) Received: by 10.70.115.12 with HTTP; Mon, 20 Feb 2006 03:38:54 -0800 (PST) Message-ID: <64de5c8b0602200338sa097642sd9e3d4568162069d@mail.gmail.com> Date: Mon, 20 Feb 2006 17:08:54 +0530 From: "Rajkumar S" To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Porting question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 11:38:55 -0000 Hi, I am trying to create a package for havp. I have a working patch for havp, and created a Makefile and so on. When I execute make: root@beastie:~/package/havp# make clean =3D=3D=3D> Cleaning for havp-0.77_1 root@beastie:~/package/havp# make =3D=3D=3D> Vulnerability check disabled, database not found =3D=3D=3D> Extracting for havp-0.77_1 =3D> No checksum file (/root/package/havp/distinfo). =3D=3D=3D> Patching for havp-0.77_1 =3D=3D=3D> Applying FreeBSD patches for havp-0.77_1 =3D=3D=3D> Configuring for havp-0.77_1 checking for C++ compiler default output file name... a.out =3D=3D=3D> Building for havp-0.77_1 cd havp && make c++ -O2 -fno-strict-aliasing -pipe -c filehandler.cpp c++ -O2 -fno-strict-aliasing -pipe -c helper.cpp But here not all arguments of c++ is present. root@beastie:~/package/havp# cd work/havp-0.77/ root@beastie:~/package/havp/work/havp-0.77# make cd havp && make c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-strict-aliasing -pipe -c connectiontobrowser.cpp c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-stri As you can see -I/usr/local/include is missing when building package but it's present when I make manually. Can some one point me to the right direction here? The make files are attached below. raj root@beastie:~/package/havp/work/havp-0.77# cat Makefile all: havp cd havp && $(MAKE) clean: cd havp && $(MAKE) clean .PHONY: havp/havp install: havp/havp cd havp && $(MAKE) install and root@beastie:~/package/havp/work/havp-0.77# cat havp/Makefile CFLAGS =3D -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-strict-aliasing -pipe prefix=3D/usr/local exec_prefix=3D${prefix} sbindir=3D${exec_prefix}/sbin etcdir=3D${prefix}/etc lan_fils :=3D$(wildcard ../etc/havp/templates/[a-z]*/*.html) OBJECTS =3D filehandler.o helper.o logfile.o scannerfilehandler.o connectiontobrowser.o \ genericscanner.o httphandler.o params.o sockethandler.o connectiontoserver.o havp.o \ proxyhandler.o whitelist.o clamlibscanner.o all: havp havp: $(OBJECTS) $(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -o havp $(OBJECTS) -L/usr/local/lib -lz -lbz2 -lgmp -pthread -lclamav install: all install -d $(sbindir) install -m 755 havp $(sbindir)/havp install -d /var/log/havp/ install -d /var/tmp/havp/ install -d /var/run/havp/ chmod a+rw /var/run/havp/ install -d /etc/init.d/ install -m 755 ../etc/init.d/havp /etc/init.d/ install -m 644 -D ../etc/havp/havp.config $(etcdir)/havp/havp.confi= g install -m 644 -D ../etc/havp/whitelist $(etcdir)/havp/whitelist install -m 644 -D ../etc/havp/blacklist $(etcdir)/havp/blacklist @list=3D'${lan_fils}'; for fil in $$list;do \ install -m 755 -D $$fil $(etcdir)/$${fil#../etc*}; \ done %.o: %.cpp %.h $(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -c $< -o $@ clean: -rm -f havp $(OBJECTS)