El 19/11/25 a las 14:19, Greg Troxel escribió:
Ramiro Aceves <[email protected]> writes:
I also think that if some packages aren't in pkgsrc, it's because
someone has already tried and porting them is impossible or too
difficult.
I think that is not a correct assumption. Another reason is that nobody
has tried.
I often examine the Makefiles of existing packages and think, "Wow,
that's complicated." I'm also amazed at the number of patches. Some
packages have just a handful, but others, like Chromium, have
hundreds.
That's mostly not about pkgsrc. Lots of patches is usually because the
upstream code has portability problems.
Some things get very complicated, but packages that have normal build
systems and don't have portability problems are often fairly simple.
I think after you get used to things you will find that most of the
effort is dealing with upstream complications.
But really: feel free to start creating a package in wip, even if it's
got a bunch of comments instead of make code. Look at other pkgsrc
entries for inspiration.
Hi Greg,
Thanks so much for encouraging. I am going to study the subject and see
If I learn to do it. Playing with url2pkg as a first thing.
Anyway, I have been able to compile QUCS-S. Instead of git cloning this:
https://github.com/ra3xdh/qucs_s.git
I downloaded a stable release:
https://github.com/ra3xdh/qucs_s/releases/download/25.2.0/qucs-s-25.2.0.tar.gz
I compiled with:
$cmake .. \
-DBISON_DIR=/usr/pkg/bin \
-DCMAKE_INSTALL_PREFIX=/home/ramiro/qucs-s \
-DCMAKE_PREFIX_PATH=/usr/pkg/qt6 \
-DCMAKE_INCLUDE_PATH=/usr/pkg/include \
-DCMAKE_LIBRARY_PATH=/usr/pkg/lib \
-DCMAKE_CXX_FLAGS="-I/usr/pkg/include" \
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/pkg/lib"
$make -j8
Everything went smooth!!! it ended ok.
I installed on /home/ramiro/qucs-s just to not break anything in my
pkgsr installation.
$make install
netbsd-nuc$ ./qucs-s
./qucs-s: Shared object "libQt6SvgWidgets.so.6" not found
netbsd-nuc$
netbsd-nuc$ ldd qucs-s
qucs-s:
-lQt6SvgWidgets.6 => not found
-lQt6Xml.6 => not found
-lQt6PrintSupport.6 => not found
-lQt6Svg.6 => not found
-lQt6Widgets.6 => not found
-lQt6Gui.6 => not found
-lGL.1 => not found
-lQt6Core.6 => not found
-lstdc++.9 => /usr/lib/libstdc++.so.9
-lm.0 => /usr/lib/libm.so.0
-lc.12 => /usr/lib/libc.so.12
-lgcc_s.1 => /usr/lib/libgcc_s.so.1
-lpthread.1 => /usr/lib/libpthread.so.1
I think I am close.
Regards.