12587
![]() |
|
|
|
|
|||||||
| Porting New Software Having trouble or general questions about porting software to FreeBSD? Ask here. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
The software that I am trying to port only has an autogen shell script. The configure script is not created until autogen.sh is run. So I have two questions here. Is there a way to get the ports system to use the autogen.sh script? Or can I safely run this on my machine, and then repackage the software with the resulting configure script?
Last edited by ring_zero; May 10th, 2012 at 01:17. |
|
#2
|
||||
|
||||
|
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
I tried using
Code:
USE_AUTOTOOLS= aclocal automake Code:
Makefile.am:19: `%'-style pattern rules are a GNU make extension configure.ac:14: required file `config.h.in' not found *** Error code 1 |
|
#4
|
||||
|
||||
|
Read the autogen.sh script. See what it does and translate that to the ports system.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
|||
|
|||
|
Already there. Now I am getting the error:
Code:
Makefile.am:19: `%'-style pattern rules are a GNU make extension *** Error code 1 |
|
#6
|
||||
|
||||
|
Add USE_GMAKE to your Makefile. That'll make sure GNU make is used instead of the FreeBSD make.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
ring_zero (May 10th, 2012) | ||
|
#7
|
|||
|
|||
|
SirDice, Thank You for taking the time to help me out with this.
Code:
USE_GMAKE=yes Code:
gmake distclean Last edited by DutchDaemon; May 10th, 2012 at 23:25. |
|
#8
|
||||
|
||||
|
Can you make a simple patch to patch the 'broken' Makefile.am? The ports system can automatically apply that patch before starting the actual build. That may solve the issue.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#9
|
|||
|
|||
|
The package will not build without the offending lines in 'Makefile.am'. I am considering contacting the author of the software for more information/help with this. I have actually finished the ports using the repackaged distfiles, and submitted a PR, the idea being if anything changes based off of the possible response from the application's author, I can always submit another PR with a diff reflecting the changes. The port that I have written is dependent on E17. The ports-maintainer for E17 has recently upgraded E17 to the current official version. The changes should be committed sometime soon, hopefully. Unfortunately, the current version of the software that I have ported is written against the latest E17-svn code, which is significantly different than the current official release of E17. This means that I am having to use an older version of the software that I have ported. The source, however, is only distributed via git repository. I have yet to figure out how to download source for a previous commit into the ports tree. I have an address that points to a tar archive.
Code:
https://github.com/jeffdameth/ecomorph/tarball/76e0131b9f197585b0781f532c9a2c22432b7a60 Code:
MASTER_SITES=https://github.com/jeffdameth/ecomorph/tarball/ PORTVERSION=76e0131b9f197585b0781f532c9a2c22432b7a60 Code:
#!/bin/sh
rm -rf autom4te.cache
rm -f aclocal.m4 ltmain.sh
touch README
echo "Running autopoint..." ; autopoint -f || :
echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
echo "Running autoheader..." ; autoheader || exit 1
echo "Running autoconf..." ; autoconf || exit 1
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
fi
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to configure ppp for u3g? | iacobus | Peripheral Hardware | 18 | August 24th, 2012 12:51 |
| Anjuta - Autogen 5 not found | akregator | Installation and Maintenance of FreeBSD Ports or Packages | 0 | February 17th, 2012 19:24 |
| [Solved] Help configure X please | manblue | X.Org | 13 | March 18th, 2011 15:26 |
| Why would you want to configure inetd? | johnblue | Installing & Upgrading | 2 | December 15th, 2009 00:29 |
| how to configure hal? | jilingshu | X.Org | 0 | November 21st, 2009 15:55 |